#152C8F#152C8F

#152C8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.165 H 266.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#152C8F
RGBrgb(21, 44, 143)
HSLhsl(229, 74%, 32%)
HSVhsv(229, 85%, 56%)
CMYKcmyk(85.3%, 69.2%, 0%, 43.9%)
CIE-LABlab(23.48, 30.72, -56.67)
CIE-LCHlch(23.48, 64.46, 298.46°)
OKLaboklab(35.25% -0.0097 -0.1642)
OKLCHoklch(35.25% 0.165 266.6)
XYZxyz(6.1661, 3.9432, 26.4174)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C8F #8F7815
analogous
#15698F #152C8F #3B158F
triadic
#152C8F #8F152C #2C8F15
tetradic
#152C8F #8F1569 #8F7815 #158F3B
square
#152C8F #8F1569 #8F7815 #158F3B
split-complementary
#152C8F #8F3B15 #698F15
monochromatic
#050B24 #0D1C5A #152C8F #1D3CC4 #3C5BE2

Accessibility & contrast

On white

11.74
#152C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#152C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C8F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C8F#FFFFFF#000000##FFFFFF
##152C8F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #152c8f;
/* rgb */ color: rgb(21, 44, 143);
/* oklch */ color: oklch(35.3% 0.165 266.6);
Tailwind
colors: {
  custom: {
    50: '#6b65b1',
    500: '#152c8f',
    950: '#000000',
  },
}
SCSS
$custom: #152c8f;
$custom-light: #6b65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#152c8f",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 228.689,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.16451,
    "h": 266.6
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#152C8F
secondary
#C2A93E
accent
#CE37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #152C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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