#151F6B#151F6B

#151F6B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.131 H 269.8°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#151F6B
RGBrgb(21, 31, 107)
HSLhsl(233, 67%, 25%)
HSVhsv(233, 80%, 42%)
CMYKcmyk(80.4%, 71%, 0%, 58%)
CIE-LABlab(16.51, 25.47, -45.26)
CIE-LCHlch(16.51, 51.93, 299.37°)
OKLaboklab(29.05% -0.0004 -0.131)
OKLCHoklch(29.05% 0.131 269.8)
XYZxyz(3.4522, 2.2006, 14.1499)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F6B #6B6115
analogous
#154A6B #151F6B #36156B
triadic
#151F6B #6B151F #1F6B15
tetradic
#151F6B #6B154A #6B6115 #156B36
square
#151F6B #6B154A #6B6115 #156B36
split-complementary
#151F6B #6B3615 #4A6B15
monochromatic
#05071A #0B1038 #151F6B #1F2E9E #293DD1

Accessibility & contrast

On white

14.58
#151F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#151F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F6B
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F6B#FFFFFF#000000##FFFFFF
##151F6B1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151f6b;
/* rgb */ color: rgb(21, 31, 107);
/* oklch */ color: oklch(29.1% 0.131 269.8);
Tailwind
colors: {
  custom: {
    50: '#625a96',
    500: '#151f6b',
    950: '#000000',
  },
}
SCSS
$custom: #151f6b;
$custom-light: #625a96;
$custom-dark: #000000;
JSON
{
  "hex": "#151f6b",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 233.023,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29051,
    "c": 0.13098,
    "h": 269.8
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#151F6B
secondary
#A2963A
accent
#D63EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #151F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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