#152D71#152D71

#152D71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.121 H 265.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#152D71
RGBrgb(21, 45, 113)
HSLhsl(224, 69%, 26%)
HSVhsv(224, 81%, 44%)
CMYKcmyk(81.4%, 60.2%, 0%, 55.7%)
CIE-LABlab(20.93, 17.95, -41.90)
CIE-LCHlch(20.93, 45.59, 293.19°)
OKLaboklab(32.5% -0.0099 -0.121)
OKLCHoklch(32.5% 0.121 265.3)
XYZxyz(4.2272, 3.2280, 16.0199)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D71 #715915
analogous
#155B71 #152D71 #2B1571
triadic
#152D71 #71152D #2D7115
tetradic
#152D71 #71155B #715915 #15712B
square
#152D71 #71155B #715915 #15712B
split-complementary
#152D71 #712B15 #5B7115
monochromatic
#050A1A #0B183D #152D71 #1F42A5 #2957D7

Accessibility & contrast

On white

12.76
#152D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D71
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D71#FFFFFF#000000##FFFFFF
##152D711.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152d71;
/* rgb */ color: rgb(21, 45, 113);
/* oklch */ color: oklch(32.5% 0.121 265.3);
Tailwind
colors: {
  custom: {
    50: '#63659a',
    500: '#152d71',
    950: '#000000',
  },
}
SCSS
$custom: #152d71;
$custom-light: #63659a;
$custom-dark: #000000;
JSON
{
  "hex": "#152d71",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 224.348,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32501,
    "c": 0.1214,
    "h": 265.3
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#152D71
secondary
#A78B3B
accent
#BE3CEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152D71

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

Preview Lab → · Contrast checker → · Palette generator →

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