#152240#152240

#152240 is a dark, muted blue. Relative luminance 0.017; OKLCH L 25.8% C 0.059 H 264.9°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#152240
RGBrgb(21, 34, 64)
HSLhsl(222, 51%, 17%)
HSVhsv(222, 67%, 25%)
CMYKcmyk(67.2%, 46.9%, 0%, 74.9%)
CIE-LABlab(13.67, 5.54, -20.83)
CIE-LCHlch(13.67, 21.55, 284.89°)
OKLaboklab(25.77% -0.0053 -0.0592)
OKLCHoklch(25.77% 0.059 264.9)
XYZxyz(1.8064, 1.6735, 5.0773)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152240 #403315
analogous
#153840 #152240 #1E1540
triadic
#152240 #401522 #224015
tetradic
#152240 #401538 #403315 #15401E
square
#152240 #401538 #403315 #15401E
split-complementary
#152240 #401E15 #384015
monochromatic
#080C17 #080C17 #152240 #243A6E #33539C

Accessibility & contrast

On white

15.73
#152240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152240
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152240#FFFFFF#000000##FFFFFF
##1522401.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#00292D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #152240;
/* rgb */ color: rgb(21, 34, 64);
/* oklch */ color: oklch(25.8% 0.059 264.9);
Tailwind
colors: {
  custom: {
    50: '#575c75',
    500: '#152240',
    950: '#000000',
  },
}
SCSS
$custom: #152240;
$custom-light: #575c75;
$custom-dark: #000000;
JSON
{
  "hex": "#152240",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 221.86,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25765,
    "c": 0.05947,
    "h": 264.9
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#152240
secondary
#786539
accent
#B04EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #152240

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

Preview Lab → · Contrast checker → · Palette generator →

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