#151F5E#151F5E

#151F5E is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.7% C 0.112 H 270.3°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#151F5E
RGBrgb(21, 31, 94)
HSLhsl(232, 63%, 23%)
HSVhsv(232, 78%, 37%)
CMYKcmyk(77.7%, 67%, 0%, 63.1%)
CIE-LABlab(15.21, 20.25, -38.82)
CIE-LCHlch(15.21, 43.78, 297.55°)
OKLaboklab(27.7% 0.0005 -0.1121)
OKLCHoklch(27.7% 0.112 270.3)
XYZxyz(2.8189, 1.9473, 10.8148)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F5E #5E5415
analogous
#15435E #151F5E #30155E
triadic
#151F5E #5E151F #1F5E15
tetradic
#151F5E #5E1543 #5E5415 #155E30
square
#151F5E #5E1543 #5E5415 #155E30
split-complementary
#151F5E #5E3015 #435E15
monochromatic
#060819 #0A0F2C #151F5E #202F90 #2B40C2

Accessibility & contrast

On white

15.11
#151F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#151F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F5E
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F5E#FFFFFF#000000##FFFFFF
##151F5E1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151f5e;
/* rgb */ color: rgb(21, 31, 94);
/* oklch */ color: oklch(27.7% 0.112 270.3);
Tailwind
colors: {
  custom: {
    50: '#5f5a8c',
    500: '#151f5e',
    950: '#000000',
  },
}
SCSS
$custom: #151f5e;
$custom-light: #5f5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#151f5e",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 231.781,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27702,
    "c": 0.11213,
    "h": 270.3
  },
  "luminance": 0.01948
}

Semantic roles & 50–950 ramp

primary
#151F5E
secondary
#958939
accent
#D041E7
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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