#152071#152071

#152071 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.138 H 269.4°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#152071
RGBrgb(21, 32, 113)
HSLhsl(233, 69%, 26%)
HSVhsv(233, 81%, 44%)
CMYKcmyk(81.4%, 71.7%, 0%, 55.7%)
CIE-LABlab(17.39, 27.14, -47.71)
CIE-LCHlch(17.39, 54.89, 299.63°)
OKLaboklab(29.88% -0.0015 -0.1381)
OKLCHoklch(29.88% 0.138 269.4)
XYZxyz(3.8054, 2.3843, 15.8792)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152071 #716615
analogous
#154E71 #152071 #381571
triadic
#152071 #711520 #207115
tetradic
#152071 #71154E #716615 #157138
square
#152071 #71154E #716615 #157138
split-complementary
#152071 #713815 #4E7115
monochromatic
#05071A #0B113D #152071 #1F2FA5 #293ED7

Accessibility & contrast

On white

14.22
#152071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#152071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152071
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152071#FFFFFF#000000##FFFFFF
##1520711.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152071;
/* rgb */ color: rgb(21, 32, 113);
/* oklch */ color: oklch(29.9% 0.138 269.4);
Tailwind
colors: {
  custom: {
    50: '#645b9b',
    500: '#152071',
    950: '#000000',
  },
}
SCSS
$custom: #152071;
$custom-light: #645b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#152071",
  "rgb": {
    "r": 21,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 232.826,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2988,
    "c": 0.13815,
    "h": 269.4
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#152071
secondary
#A79A3B
accent
#D73CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152071

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

Preview Lab → · Contrast checker → · Palette generator →

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