#152F8D#152F8D

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

Color values

HEX#152F8D
RGBrgb(21, 47, 141)
HSLhsl(227, 74%, 32%)
HSVhsv(227, 85%, 55%)
CMYKcmyk(85.1%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.05, 27.92, -54.50)
CIE-LCHlch(24.05, 61.23, 297.12°)
OKLaboklab(35.6% -0.011 -0.1579)
OKLCHoklch(35.6% 0.158 266)
XYZxyz(6.1318, 4.1148, 25.6652)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F8D #8D7315
analogous
#156B8D #152F8D #37158D
triadic
#152F8D #8D152F #2F8D15
tetradic
#152F8D #8D156B #8D7315 #158D37
square
#152F8D #8D156B #8D7315 #158D37
split-complementary
#152F8D #8D3715 #6B8D15
monochromatic
#050B22 #0D1D58 #152F8D #1D41C2 #3B5FE2

Accessibility & contrast

On white

11.52
#152F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#152F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F8D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F8D#FFFFFF#000000##FFFFFF
##152F8D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #152f8d;
/* rgb */ color: rgb(21, 47, 141);
/* oklch */ color: oklch(35.6% 0.158 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b67af',
    500: '#152f8d',
    950: '#000000',
  },
}
SCSS
$custom: #152f8d;
$custom-light: #6b67af;
$custom-dark: #000000;
JSON
{
  "hex": "#152f8d",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 227,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35604,
    "c": 0.15825,
    "h": 266
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#152F8D
secondary
#C1A43D
accent
#C837F1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #152F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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