#152E71#152E71

#152E71 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.7% C 0.120 H 264.9°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#152E71
RGBrgb(21, 46, 113)
HSLhsl(224, 69%, 26%)
HSVhsv(224, 81%, 44%)
CMYKcmyk(81.4%, 59.3%, 0%, 55.7%)
CIE-LABlab(21.23, 17.23, -41.43)
CIE-LCHlch(21.23, 44.87, 292.58°)
OKLaboklab(32.72% -0.0107 -0.1196)
OKLCHoklch(32.72% 0.12 264.9)
XYZxyz(4.2658, 3.3052, 16.0327)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E71 #715815
analogous
#155C71 #152E71 #2A1571
triadic
#152E71 #71152E #2E7115
tetradic
#152E71 #71155C #715815 #15712A
square
#152E71 #71155C #715815 #15712A
split-complementary
#152E71 #712A15 #5C7115
monochromatic
#050B1A #0B193D #152E71 #1F43A5 #2958D7

Accessibility & contrast

On white

12.64
#152E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E71
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E71#FFFFFF#000000##FFFFFF
##152E711.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152e71;
/* rgb */ color: rgb(21, 46, 113);
/* oklch */ color: oklch(32.7% 0.120 264.9);
Tailwind
colors: {
  custom: {
    50: '#63669a',
    500: '#152e71',
    950: '#000000',
  },
}
SCSS
$custom: #152e71;
$custom-light: #63669a;
$custom-dark: #000000;
JSON
{
  "hex": "#152e71",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 223.696,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3272,
    "c": 0.12005,
    "h": 264.9
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#152E71
secondary
#A78A3B
accent
#BC3CEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152E71

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

Preview Lab → · Contrast checker → · Palette generator →

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