#152A71#152A71

#152A71 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.125 H 266.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#152A71
RGBrgb(21, 42, 113)
HSLhsl(226, 69%, 26%)
HSVhsv(226, 81%, 44%)
CMYKcmyk(81.4%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.07, 20.11, -43.31)
CIE-LCHlch(20.07, 47.75, 294.91°)
OKLaboklab(31.86% -0.0078 -0.1252)
OKLCHoklch(31.86% 0.125 266.4)
XYZxyz(4.1168, 3.0071, 15.9830)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A71 #715C15
analogous
#155871 #152A71 #2E1571
triadic
#152A71 #71152A #2A7115
tetradic
#152A71 #711558 #715C15 #15712E
square
#152A71 #711558 #715C15 #15712E
split-complementary
#152A71 #712E15 #587115
monochromatic
#050A1A #0B173D #152A71 #1F3DA5 #2951D7

Accessibility & contrast

On white

13.11
#152A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#152A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A71
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A71#FFFFFF#000000##FFFFFF
##152A711.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152a71;
/* rgb */ color: rgb(21, 42, 113);
/* oklch */ color: oklch(31.9% 0.125 266.4);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#152a71',
    950: '#000000',
  },
}
SCSS
$custom: #152a71;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#152a71",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 226.304,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31856,
    "c": 0.1254,
    "h": 266.4
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#152A71
secondary
#A78E3B
accent
#C43CEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A71

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

Preview Lab → · Contrast checker → · Palette generator →

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