#151C40#151C40

#151C40 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.3% C 0.069 H 272.1°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#151C40
RGBrgb(21, 28, 64)
HSLhsl(230, 51%, 17%)
HSVhsv(230, 67%, 25%)
CMYKcmyk(67.2%, 56.2%, 0%, 74.9%)
CIE-LABlab(11.69, 10.11, -24.00)
CIE-LCHlch(11.69, 26.04, 292.84°)
OKLaboklab(24.25% 0.0025 -0.0686)
OKLCHoklch(24.25% 0.069 272.1)
XYZxyz(1.6496, 1.3600, 5.0251)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C40 #403915
analogous
#153240 #151C40 #241540
triadic
#151C40 #40151C #1C4015
tetradic
#151C40 #401532 #403915 #154024
square
#151C40 #401532 #403915 #154024
split-complementary
#151C40 #402415 #324015
monochromatic
#080A17 #080A17 #151C40 #24306E #33449C

Accessibility & contrast

On white

16.51
#151C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#151C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C40
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C40#FFFFFF#000000##FFFFFF
##151C401.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#031D3F
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #151c40;
/* rgb */ color: rgb(21, 28, 64);
/* oklch */ color: oklch(24.3% 0.069 272.1);
Tailwind
colors: {
  custom: {
    50: '#575775',
    500: '#151c40',
    950: '#000000',
  },
}
SCSS
$custom: #151c40;
$custom-light: #575775;
$custom-dark: #000000;
JSON
{
  "hex": "#151c40",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 230.233,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2425,
    "c": 0.06866,
    "h": 272.1
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#151C40
secondary
#786E39
accent
#C34EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151C40

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#151C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva