#152C71#152C71

#152C71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.3% C 0.123 H 265.7°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#152C71
RGBrgb(21, 44, 113)
HSLhsl(225, 69%, 26%)
HSVhsv(225, 81%, 44%)
CMYKcmyk(81.4%, 61.1%, 0%, 55.7%)
CIE-LABlab(20.64, 18.67, -42.38)
CIE-LCHlch(20.64, 46.31, 293.78°)
OKLaboklab(32.28% -0.0092 -0.1224)
OKLCHoklch(32.28% 0.123 265.7)
XYZxyz(4.1895, 3.1526, 16.0073)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C71 #715A15
analogous
#155A71 #152C71 #2C1571
triadic
#152C71 #71152C #2C7115
tetradic
#152C71 #71155A #715A15 #15712C
square
#152C71 #71155A #715A15 #15712C
split-complementary
#152C71 #712C15 #5A7115
monochromatic
#050A1A #0B183D #152C71 #1F40A5 #2955D7

Accessibility & contrast

On white

12.88
#152C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C71
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C71#FFFFFF#000000##FFFFFF
##152C711.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152c71;
/* rgb */ color: rgb(21, 44, 113);
/* oklch */ color: oklch(32.3% 0.123 265.7);
Tailwind
colors: {
  custom: {
    50: '#63649a',
    500: '#152c71',
    950: '#000000',
  },
}
SCSS
$custom: #152c71;
$custom-light: #63649a;
$custom-dark: #000000;
JSON
{
  "hex": "#152c71",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 225,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32283,
    "c": 0.12274,
    "h": 265.7
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#152C71
secondary
#A78C3B
accent
#C03CEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152C71

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

Preview Lab → · Contrast checker → · Palette generator →

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