#152C76#152C76

#152C76 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.130 H 266.0°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#152C76
RGBrgb(21, 44, 118)
HSLhsl(226, 70%, 27%)
HSVhsv(226, 82%, 46%)
CMYKcmyk(82.2%, 62.7%, 0%, 53.7%)
CIE-LABlab(21.09, 20.74, -44.86)
CIE-LCHlch(21.09, 49.42, 294.81°)
OKLaboklab(32.75% -0.0091 -0.1297)
OKLCHoklch(32.75% 0.13 266)
XYZxyz(4.4788, 3.2683, 17.5308)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C76 #765F15
analogous
#155D76 #152C76 #2E1576
triadic
#152C76 #76152C #2C7615
tetradic
#152C76 #76155D #765F15 #15762E
square
#152C76 #76155D #765F15 #15762E
split-complementary
#152C76 #762E15 #5D7615
monochromatic
#050A1A #0C1942 #152C76 #1E3FAA #2C55D9

Accessibility & contrast

On white

12.70
#152C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C76
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C76#FFFFFF#000000##FFFFFF
##152C761.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152c76;
/* rgb */ color: rgb(21, 44, 118);
/* oklch */ color: oklch(32.8% 0.130 266.0);
Tailwind
colors: {
  custom: {
    50: '#64649e',
    500: '#152c76',
    950: '#000000',
  },
}
SCSS
$custom: #152c76;
$custom-light: #64649e;
$custom-dark: #000000;
JSON
{
  "hex": "#152c76",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 118
  },
  "hsl": {
    "h": 225.773,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32752,
    "c": 0.13,
    "h": 266
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#152C76
secondary
#AC913B
accent
#C33BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152C76

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

Preview Lab → · Contrast checker → · Palette generator →

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