#152152#152152

#152152 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.0% C 0.091 H 269.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#152152
RGBrgb(21, 33, 82)
HSLhsl(228, 59%, 20%)
HSVhsv(228, 74%, 32%)
CMYKcmyk(74.4%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.71, 13.80, -31.55)
CIE-LCHlch(14.71, 34.44, 293.63°)
OKLaboklab(27% -0.0014 -0.0908)
OKLCHoklch(27% 0.091 269.1)
XYZxyz(2.3756, 1.8561, 8.2141)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152152 #524615
analogous
#153F52 #152152 #281552
triadic
#152152 #521521 #215215
tetradic
#152152 #52153F #524615 #155228
square
#152152 #52153F #524615 #155228
split-complementary
#152152 #522815 #3F5215
monochromatic
#060A18 #090D21 #152152 #213583 #2E48B3

Accessibility & contrast

On white

15.32
#152152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#152152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152152
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152152#FFFFFF#000000##FFFFFF
##1521521.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #152152;
/* rgb */ color: rgb(21, 33, 82);
/* oklch */ color: oklch(27.0% 0.091 269.1);
Tailwind
colors: {
  custom: {
    50: '#5b5b83',
    500: '#152152',
    950: '#000000',
  },
}
SCSS
$custom: #152152;
$custom-light: #5b5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#152152",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 228.197,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26996,
    "c": 0.09078,
    "h": 269.1
  },
  "luminance": 0.01856
}

Semantic roles & 50–950 ramp

primary
#152152
secondary
#8A7A39
accent
#C445E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #152152

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

Preview Lab → · Contrast checker → · Palette generator →

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