#151E57#151E57

#151E57 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.103 H 270.8°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#151E57
RGBrgb(21, 30, 87)
HSLhsl(232, 61%, 21%)
HSVhsv(232, 76%, 34%)
CMYKcmyk(75.9%, 65.5%, 0%, 65.9%)
CIE-LABlab(14.26, 18.11, -35.67)
CIE-LCHlch(14.26, 40.00, 296.92°)
OKLaboklab(26.8% 0.0015 -0.1029)
OKLCHoklch(26.8% 0.103 270.8)
XYZxyz(2.4932, 1.7759, 9.2264)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E57 #574E15
analogous
#153F57 #151E57 #2D1557
triadic
#151E57 #57151E #1E5715
tetradic
#151E57 #57153F #574E15 #15572D
square
#151E57 #57153F #574E15 #15572D
split-complementary
#151E57 #572D15 #3F5715
monochromatic
#060919 #090D26 #151E57 #212F88 #2D40BA

Accessibility & contrast

On white

15.50
#151E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E57
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E57#FFFFFF#000000##FFFFFF
##151E571.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151e57;
/* rgb */ color: rgb(21, 30, 87);
/* oklch */ color: oklch(26.8% 0.103 270.8);
Tailwind
colors: {
  custom: {
    50: '#5d5987',
    500: '#151e57',
    950: '#000000',
  },
}
SCSS
$custom: #151e57;
$custom-light: #5d5987;
$custom-dark: #000000;
JSON
{
  "hex": "#151e57",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 231.818,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.268,
    "c": 0.10291,
    "h": 270.8
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#151E57
secondary
#8F8339
accent
#CE44E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151E57

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

Preview Lab → · Contrast checker → · Palette generator →

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