#151F6F#151F6F

#151F6F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.137 H 269.7°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#151F6F
RGBrgb(21, 31, 111)
HSLhsl(233, 68%, 26%)
HSVhsv(233, 81%, 44%)
CMYKcmyk(81.1%, 72.1%, 0%, 56.5%)
CIE-LABlab(16.93, 27.04, -47.17)
CIE-LCHlch(16.93, 54.37, 299.82°)
OKLaboklab(29.48% -0.0008 -0.1366)
OKLCHoklch(29.48% 0.137 269.7)
XYZxyz(3.6675, 2.2867, 15.2839)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F6F #6F6515
analogous
#154C6F #151F6F #38156F
triadic
#151F6F #6F151F #1F6F15
tetradic
#151F6F #6F154C #6F6515 #156F38
square
#151F6F #6F154C #6F6515 #156F38
split-complementary
#151F6F #6F3815 #4C6F15
monochromatic
#05071A #0B113C #151F6F #1F2DA2 #283CD6

Accessibility & contrast

On white

14.41
#151F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#151F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F6F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F6F#FFFFFF#000000##FFFFFF
##151F6F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #151f6f;
/* rgb */ color: rgb(21, 31, 111);
/* oklch */ color: oklch(29.5% 0.137 269.7);
Tailwind
colors: {
  custom: {
    50: '#645b99',
    500: '#151f6f',
    950: '#000000',
  },
}
SCSS
$custom: #151f6f;
$custom-light: #645b99;
$custom-dark: #000000;
JSON
{
  "hex": "#151f6f",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 233.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29481,
    "c": 0.13657,
    "h": 269.7
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#151F6F
secondary
#A5993A
accent
#D83DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #151F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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