#151D57#151D57

#151D57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.104 H 271.3°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#151D57
RGBrgb(21, 29, 87)
HSLhsl(233, 61%, 21%)
HSVhsv(233, 76%, 34%)
CMYKcmyk(75.9%, 66.7%, 0%, 65.9%)
CIE-LABlab(13.98, 18.85, -36.13)
CIE-LCHlch(13.98, 40.75, 297.55°)
OKLaboklab(26.59% 0.0024 -0.1043)
OKLCHoklch(26.59% 0.104 271.3)
XYZxyz(2.4683, 1.7260, 9.2181)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D57 #574F15
analogous
#153E57 #151D57 #2E1557
triadic
#151D57 #57151D #1D5715
tetradic
#151D57 #57153E #574F15 #15572E
square
#151D57 #57153E #574F15 #15572E
split-complementary
#151D57 #572E15 #3E5715
monochromatic
#060819 #090D26 #151D57 #212D88 #2D3EBA

Accessibility & contrast

On white

15.61
#151D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D57
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D57#FFFFFF#000000##FFFFFF
##151D571.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151d57;
/* rgb */ color: rgb(21, 29, 87);
/* oklch */ color: oklch(26.6% 0.104 271.3);
Tailwind
colors: {
  custom: {
    50: '#5d5887',
    500: '#151d57',
    950: '#000000',
  },
}
SCSS
$custom: #151d57;
$custom-light: #5d5887;
$custom-dark: #000000;
JSON
{
  "hex": "#151d57",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 87
  },
  "hsl": {
    "h": 232.727,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26588,
    "c": 0.10431,
    "h": 271.3
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#151D57
secondary
#8F8439
accent
#D144E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151D57

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

Preview Lab → · Contrast checker → · Palette generator →

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