#152A72#152A72

#152A72 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.127 H 266.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#152A72
RGBrgb(21, 42, 114)
HSLhsl(226, 69%, 26%)
HSVhsv(226, 82%, 45%)
CMYKcmyk(81.6%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.16, 20.52, -43.80)
CIE-LCHlch(20.16, 48.37, 295.10°)
OKLaboklab(31.95% -0.0077 -0.1266)
OKLCHoklch(31.95% 0.127 266.5)
XYZxyz(4.1734, 3.0298, 16.2812)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A72 #725D15
analogous
#155972 #152A72 #2F1572
triadic
#152A72 #72152A #2A7215
tetradic
#152A72 #721559 #725D15 #15722F
square
#152A72 #721559 #725D15 #15722F
split-complementary
#152A72 #722F15 #597215
monochromatic
#050A1A #0B173E #152A72 #1F3DA6 #2A51D8

Accessibility & contrast

On white

13.08
#152A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#152A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A72
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A72#FFFFFF#000000##FFFFFF
##152A721.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152a72;
/* rgb */ color: rgb(21, 42, 114);
/* oklch */ color: oklch(32.0% 0.127 266.5);
Tailwind
colors: {
  custom: {
    50: '#63639b',
    500: '#152a72',
    950: '#000000',
  },
}
SCSS
$custom: #152a72;
$custom-light: #63639b;
$custom-dark: #000000;
JSON
{
  "hex": "#152a72",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 226.452,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31951,
    "c": 0.12686,
    "h": 266.5
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#152A72
secondary
#A88F3B
accent
#C43CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A72

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

Preview Lab → · Contrast checker → · Palette generator →

#152A72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva