#152252#152252

#152252 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.089 H 268.4°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#152252
RGBrgb(21, 34, 82)
HSLhsl(227, 59%, 20%)
HSVhsv(227, 74%, 32%)
CMYKcmyk(74.4%, 58.5%, 0%, 67.8%)
CIE-LABlab(15.02, 13.06, -31.06)
CIE-LCHlch(15.02, 33.69, 292.80°)
OKLaboklab(27.23% -0.0024 -0.0893)
OKLCHoklch(27.23% 0.089 268.4)
XYZxyz(2.4038, 1.9124, 8.2235)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152252 #524515
analogous
#154052 #152252 #261552
triadic
#152252 #521522 #225215
tetradic
#152252 #521540 #524515 #155226
square
#152252 #521540 #524515 #155226
split-complementary
#152252 #522615 #405215
monochromatic
#060A18 #090E21 #152252 #213683 #2E4AB3

Accessibility & contrast

On white

15.19
#152252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#152252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152252
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152252#FFFFFF#000000##FFFFFF
##1522521.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022954
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152252;
/* rgb */ color: rgb(21, 34, 82);
/* oklch */ color: oklch(27.2% 0.089 268.4);
Tailwind
colors: {
  custom: {
    50: '#5b5c83',
    500: '#152252',
    950: '#000000',
  },
}
SCSS
$custom: #152252;
$custom-light: #5b5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#152252",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 227.213,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27228,
    "c": 0.08932,
    "h": 268.4
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#152252
secondary
#8A7939
accent
#C145E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #152252

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

Preview Lab → · Contrast checker → · Palette generator →

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