#152972#152972

#152972 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.7% C 0.128 H 266.8°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#152972
RGBrgb(21, 41, 114)
HSLhsl(227, 69%, 26%)
HSVhsv(227, 82%, 45%)
CMYKcmyk(81.6%, 64%, 0%, 55.3%)
CIE-LABlab(19.88, 21.24, -44.26)
CIE-LCHlch(19.88, 49.10, 295.63°)
OKLaboklab(31.74% -0.0071 -0.128)
OKLCHoklch(31.74% 0.128 266.8)
XYZxyz(4.1384, 2.9597, 16.2695)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152972 #725E15
analogous
#155872 #152972 #301572
triadic
#152972 #721529 #297215
tetradic
#152972 #721558 #725E15 #157230
square
#152972 #721558 #725E15 #157230
split-complementary
#152972 #723015 #587215
monochromatic
#05091A #0B163E #152972 #1F3CA6 #2A4FD8

Accessibility & contrast

On white

13.19
#152972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#152972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152972
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152972#FFFFFF#000000##FFFFFF
##1529721.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152972;
/* rgb */ color: rgb(21, 41, 114);
/* oklch */ color: oklch(31.7% 0.128 266.8);
Tailwind
colors: {
  custom: {
    50: '#63629b',
    500: '#152972',
    950: '#000000',
  },
}
SCSS
$custom: #152972;
$custom-light: #63629b;
$custom-dark: #000000;
JSON
{
  "hex": "#152972",
  "rgb": {
    "r": 21,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 227.097,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31742,
    "c": 0.12818,
    "h": 266.8
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#152972
secondary
#A8913B
accent
#C63CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152972

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

Preview Lab → · Contrast checker → · Palette generator →

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