#151E5F#151E5F

#151E5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.115 H 270.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#151E5F
RGBrgb(21, 30, 95)
HSLhsl(233, 64%, 23%)
HSVhsv(233, 78%, 37%)
CMYKcmyk(77.9%, 68.4%, 0%, 62.7%)
CIE-LABlab(15.03, 21.38, -39.77)
CIE-LCHlch(15.03, 45.16, 298.26°)
OKLaboklab(27.6% 0.0012 -0.1149)
OKLCHoklch(27.6% 0.115 270.6)
XYZxyz(2.8384, 1.9139, 11.0441)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E5F #5F5615
analogous
#15435F #151E5F #31155F
triadic
#151E5F #5F151E #1E5F15
tetradic
#151E5F #5F1543 #5F5615 #155F31
square
#151E5F #5F1543 #5F5615 #155F31
split-complementary
#151E5F #5F3115 #435F15
monochromatic
#060819 #0A0E2D #151E5F #202E91 #2B3EC3

Accessibility & contrast

On white

15.19
#151E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#151E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E5F
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E5F#FFFFFF#000000##FFFFFF
##151E5F1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151e5f;
/* rgb */ color: rgb(21, 30, 95);
/* oklch */ color: oklch(27.6% 0.115 270.6);
Tailwind
colors: {
  custom: {
    50: '#5f598d',
    500: '#151e5f',
    950: '#000000',
  },
}
SCSS
$custom: #151e5f;
$custom-light: #5f598d;
$custom-dark: #000000;
JSON
{
  "hex": "#151e5f",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 232.703,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.276,
    "c": 0.11496,
    "h": 270.6
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#151E5F
secondary
#968B3A
accent
#D341E7
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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