#152171#152171

#152171 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.137 H 269.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#152171
RGBrgb(21, 33, 113)
HSLhsl(232, 69%, 26%)
HSVhsv(232, 81%, 44%)
CMYKcmyk(81.4%, 70.8%, 0%, 55.7%)
CIE-LABlab(17.64, 26.46, -47.29)
CIE-LCHlch(17.64, 54.19, 299.22°)
OKLaboklab(30.06% -0.0021 -0.1369)
OKLCHoklch(30.06% 0.137 269.1)
XYZxyz(3.8327, 2.4390, 15.8884)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152171 #716515
analogous
#154F71 #152171 #371571
triadic
#152171 #711521 #217115
tetradic
#152171 #71154F #716515 #157137
square
#152171 #71154F #716515 #157137
split-complementary
#152171 #713715 #4F7115
monochromatic
#05081A #0B123D #152171 #1F30A5 #2940D7

Accessibility & contrast

On white

14.11
#152171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#152171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152171
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152171#FFFFFF#000000##FFFFFF
##1521711.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152171;
/* rgb */ color: rgb(21, 33, 113);
/* oklch */ color: oklch(30.1% 0.137 269.1);
Tailwind
colors: {
  custom: {
    50: '#645c9b',
    500: '#152171',
    950: '#000000',
  },
}
SCSS
$custom: #152171;
$custom-light: #645c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#152171",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 232.174,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30064,
    "c": 0.13694,
    "h": 269.1
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#152171
secondary
#A7993B
accent
#D53CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152171

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

Preview Lab → · Contrast checker → · Palette generator →

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