#152172#152172

#152172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.138 H 269.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#152172
RGBrgb(21, 33, 114)
HSLhsl(232, 69%, 26%)
HSVhsv(232, 82%, 45%)
CMYKcmyk(81.6%, 71.1%, 0%, 55.3%)
CIE-LABlab(17.74, 26.85, -47.77)
CIE-LCHlch(17.74, 54.80, 299.34°)
OKLaboklab(30.17% -0.0021 -0.1383)
OKLCHoklch(30.17% 0.138 269.1)
XYZxyz(3.8893, 2.4616, 16.1865)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152172 #726615
analogous
#155072 #152172 #381572
triadic
#152172 #721521 #217215
tetradic
#152172 #721550 #726615 #157238
square
#152172 #721550 #726615 #157238
split-complementary
#152172 #723815 #507215
monochromatic
#05071A #0B123E #152172 #1F30A6 #2A40D8

Accessibility & contrast

On white

14.07
#152172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152172
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152172#FFFFFF#000000##FFFFFF
##1521721.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152172;
/* rgb */ color: rgb(21, 33, 114);
/* oklch */ color: oklch(30.2% 0.138 269.1);
Tailwind
colors: {
  custom: {
    50: '#645c9b',
    500: '#152172',
    950: '#000000',
  },
}
SCSS
$custom: #152172;
$custom-light: #645c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#152172",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 232.258,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30171,
    "c": 0.13832,
    "h": 269.1
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#152172
secondary
#A89A3B
accent
#D53CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152172

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

Preview Lab → · Contrast checker → · Palette generator →

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