#151C57#151C57

#151C57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.106 H 271.7°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#151C57
RGBrgb(21, 28, 87)
HSLhsl(234, 61%, 21%)
HSVhsv(234, 76%, 34%)
CMYKcmyk(75.9%, 67.8%, 0%, 65.9%)
CIE-LABlab(13.70, 19.58, -36.59)
CIE-LCHlch(13.70, 41.50, 298.15°)
OKLaboklab(26.38% 0.0032 -0.1056)
OKLCHoklch(26.38% 0.106 271.7)
XYZxyz(2.4442, 1.6778, 9.2100)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C57 #575015
analogous
#153D57 #151C57 #2F1557
triadic
#151C57 #57151C #1C5715
tetradic
#151C57 #57153D #575015 #15572F
square
#151C57 #57153D #575015 #15572F
split-complementary
#151C57 #572F15 #3D5715
monochromatic
#060819 #090C26 #151C57 #212C88 #2D3CBA

Accessibility & contrast

On white

15.72
#151C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C57
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C57#FFFFFF#000000##FFFFFF
##151C571.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151c57;
/* rgb */ color: rgb(21, 28, 87);
/* oklch */ color: oklch(26.4% 0.106 271.7);
Tailwind
colors: {
  custom: {
    50: '#5d5887',
    500: '#151c57',
    950: '#000000',
  },
}
SCSS
$custom: #151c57;
$custom-light: #5d5887;
$custom-dark: #000000;
JSON
{
  "hex": "#151c57",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 233.636,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26381,
    "c": 0.10569,
    "h": 271.7
  },
  "luminance": 0.01678
}

Semantic roles & 50–950 ramp

primary
#151C57
secondary
#8F8639
accent
#D344E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151C57

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

Preview Lab → · Contrast checker → · Palette generator →

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