#152F8E#152F8E

#152F8E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.160 H 266.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#152F8E
RGBrgb(21, 47, 142)
HSLhsl(227, 74%, 32%)
HSVhsv(227, 85%, 56%)
CMYKcmyk(85.2%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.14, 28.31, -54.96)
CIE-LCHlch(24.14, 61.82, 297.25°)
OKLaboklab(35.71% -0.011 -0.1592)
OKLCHoklch(35.71% 0.16 266)
XYZxyz(6.2065, 4.1447, 26.0588)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F8E #8E7415
analogous
#156C8E #152F8E #37158E
triadic
#152F8E #8E152F #2F8E15
tetradic
#152F8E #8E156C #8E7415 #158E37
square
#152F8E #8E156C #8E7415 #158E37
split-complementary
#152F8E #8E3715 #6C8E15
monochromatic
#050C23 #0D1D59 #152F8E #1D41C3 #3B5FE2

Accessibility & contrast

On white

11.48
#152F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#152F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F8E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F8E#FFFFFF#000000##FFFFFF
##152F8E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #152f8e;
/* rgb */ color: rgb(21, 47, 142);
/* oklch */ color: oklch(35.7% 0.160 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b67b0',
    500: '#152f8e',
    950: '#000000',
  },
}
SCSS
$custom: #152f8e;
$custom-light: #6b67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#152f8e",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 227.107,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.15959,
    "h": 266
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

primary
#152F8E
secondary
#C2A53D
accent
#C937F1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #152F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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