#152242#152242

#152242 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.063 H 265.6°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#152242
RGBrgb(21, 34, 66)
HSLhsl(223, 52%, 17%)
HSVhsv(223, 68%, 26%)
CMYKcmyk(68.2%, 48.5%, 0%, 74.1%)
CIE-LABlab(13.81, 6.36, -22.01)
CIE-LCHlch(13.81, 22.91, 286.12°)
OKLaboklab(25.92% -0.0048 -0.0627)
OKLCHoklch(25.92% 0.063 265.6)
XYZxyz(1.8643, 1.6967, 5.3824)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152242 #423515
analogous
#153942 #152242 #1F1542
triadic
#152242 #421522 #224215
tetradic
#152242 #421539 #423515 #15421F
square
#152242 #421539 #423515 #15421F
split-complementary
#152242 #421F15 #394215
monochromatic
#070C17 #070C17 #152242 #243A70 #33529F

Accessibility & contrast

On white

15.68
#152242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#152242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152242
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152242#FFFFFF#000000##FFFFFF
##1522421.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142543
Deuteranopia (green-blind)
#0D2141
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #152242;
/* rgb */ color: rgb(21, 34, 66);
/* oklch */ color: oklch(25.9% 0.063 265.6);
Tailwind
colors: {
  custom: {
    50: '#575c76',
    500: '#152242',
    950: '#000000',
  },
}
SCSS
$custom: #152242;
$custom-light: #575c76;
$custom-dark: #000000;
JSON
{
  "hex": "#152242",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 222.667,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25915,
    "c": 0.06287,
    "h": 265.6
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#152242
secondary
#7A6739
accent
#B24DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #152242

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

Preview Lab → · Contrast checker → · Palette generator →

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