#151C6F#151C6F

#151C6F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.140 H 270.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#151C6F
RGBrgb(21, 28, 111)
HSLhsl(235, 68%, 26%)
HSVhsv(235, 81%, 44%)
CMYKcmyk(81.1%, 74.8%, 0%, 56.5%)
CIE-LABlab(16.19, 29.05, -48.38)
CIE-LCHlch(16.19, 56.43, 300.98°)
OKLaboklab(28.95% 0.0008 -0.1401)
OKLCHoklch(28.95% 0.14 270.3)
XYZxyz(3.5928, 2.1372, 15.2590)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C6F #6F6815
analogous
#15496F #151C6F #3B156F
triadic
#151C6F #6F151C #1C6F15
tetradic
#151C6F #6F1549 #6F6815 #156F3B
square
#151C6F #6F1549 #6F6815 #156F3B
split-complementary
#151C6F #6F3B15 #496F15
monochromatic
#05061A #0B0F3C #151C6F #1F29A2 #2836D6

Accessibility & contrast

On white

14.71
#151C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#151C6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C6F
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C6F#FFFFFF#000000##FFFFFF
##151C6F1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151c6f;
/* rgb */ color: rgb(21, 28, 111);
/* oklch */ color: oklch(29.0% 0.140 270.3);
Tailwind
colors: {
  custom: {
    50: '#645899',
    500: '#151c6f',
    950: '#000000',
  },
}
SCSS
$custom: #151c6f;
$custom-light: #645899;
$custom-dark: #000000;
JSON
{
  "hex": "#151c6f",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 235.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28952,
    "c": 0.1401,
    "h": 270.3
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#151C6F
secondary
#A59D3A
accent
#DD3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #151C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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