#152142#152142

#152142 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.064 H 266.8°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#152142
RGBrgb(21, 33, 66)
HSLhsl(224, 52%, 17%)
HSVhsv(224, 68%, 26%)
CMYKcmyk(68.2%, 50%, 0%, 74.1%)
CIE-LABlab(13.47, 7.12, -22.54)
CIE-LCHlch(13.47, 23.64, 287.53°)
OKLaboklab(25.66% -0.0036 -0.0643)
OKLCHoklch(25.66% 0.064 266.8)
XYZxyz(1.8362, 1.6403, 5.3731)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152142 #423615
analogous
#153842 #152142 #201542
triadic
#152142 #421521 #214215
tetradic
#152142 #421538 #423615 #154220
square
#152142 #421538 #423615 #154220
split-complementary
#152142 #422015 #384215
monochromatic
#070C17 #070C17 #152142 #243870 #334F9F

Accessibility & contrast

On white

15.81
#152142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#152142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152142
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152142#FFFFFF#000000##FFFFFF
##1521421.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122543
Deuteranopia (green-blind)
#0B2141
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #152142;
/* rgb */ color: rgb(21, 33, 66);
/* oklch */ color: oklch(25.7% 0.064 266.8);
Tailwind
colors: {
  custom: {
    50: '#575b76',
    500: '#152142',
    950: '#000000',
  },
}
SCSS
$custom: #152142;
$custom-light: #575b76;
$custom-dark: #000000;
JSON
{
  "hex": "#152142",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 224,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25658,
    "c": 0.06436,
    "h": 266.8
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#152142
secondary
#7A6939
accent
#B54DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #152142

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

Preview Lab → · Contrast checker → · Palette generator →

#152142 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva