#152140#152140

#152140 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.061 H 266.2°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#152140
RGBrgb(21, 33, 64)
HSLhsl(223, 51%, 17%)
HSVhsv(223, 67%, 25%)
CMYKcmyk(67.2%, 48.4%, 0%, 74.9%)
CIE-LABlab(13.33, 6.29, -21.37)
CIE-LCHlch(13.33, 22.27, 286.41°)
OKLaboklab(25.51% -0.004 -0.0608)
OKLCHoklch(25.51% 0.061 266.2)
XYZxyz(1.7782, 1.6172, 5.0679)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152140 #403415
analogous
#153740 #152140 #1F1540
triadic
#152140 #401521 #214015
tetradic
#152140 #401537 #403415 #15401F
square
#152140 #401537 #403415 #15401F
split-complementary
#152140 #401F15 #374015
monochromatic
#080C17 #080C17 #152140 #24396E #33519C

Accessibility & contrast

On white

15.87
#152140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#152140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152140
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152140#FFFFFF#000000##FFFFFF
##1521401.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#0D203F
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #152140;
/* rgb */ color: rgb(21, 33, 64);
/* oklch */ color: oklch(25.5% 0.061 266.2);
Tailwind
colors: {
  custom: {
    50: '#575b75',
    500: '#152140',
    950: '#000000',
  },
}
SCSS
$custom: #152140;
$custom-light: #575b75;
$custom-dark: #000000;
JSON
{
  "hex": "#152140",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 223.256,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25506,
    "c": 0.06094,
    "h": 266.2
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#152140
secondary
#786639
accent
#B34EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #152140

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

Preview Lab → · Contrast checker → · Palette generator →

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