#152A8E#152A8E

#152A8E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.166 H 267.0°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#152A8E
RGBrgb(21, 42, 142)
HSLhsl(230, 74%, 32%)
HSVhsv(230, 85%, 56%)
CMYKcmyk(85.2%, 70.4%, 0%, 44.3%)
CIE-LABlab(22.89, 31.67, -57.03)
CIE-LCHlch(22.89, 65.23, 299.04°)
OKLaboklab(34.79% -0.0088 -0.1653)
OKLCHoklch(34.79% 0.166 267)
XYZxyz(6.0180, 3.7676, 25.9960)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A8E #8E7915
analogous
#15678E #152A8E #3D158E
triadic
#152A8E #8E152A #2A8E15
tetradic
#152A8E #8E1567 #8E7915 #158E3D
square
#152A8E #8E1567 #8E7915 #158E3D
split-complementary
#152A8E #8E3D15 #678E15
monochromatic
#050A23 #0D1A59 #152A8E #1D3AC3 #3B58E2

Accessibility & contrast

On white

11.98
#152A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#152A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A8E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A8E#FFFFFF#000000##FFFFFF
##152A8E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #152a8e;
/* rgb */ color: rgb(21, 42, 142);
/* oklch */ color: oklch(34.8% 0.166 267.0);
Tailwind
colors: {
  custom: {
    50: '#6b63b0',
    500: '#152a8e',
    950: '#000000',
  },
}
SCSS
$custom: #152a8e;
$custom-light: #6b63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#152a8e",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 229.587,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34786,
    "c": 0.1655,
    "h": 267
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#152A8E
secondary
#C2AB3D
accent
#D137F1
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #152A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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