#152D76#152D76

#152D76 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.129 H 265.7°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#152D76
RGBrgb(21, 45, 118)
HSLhsl(225, 70%, 27%)
HSVhsv(225, 82%, 46%)
CMYKcmyk(82.2%, 61.9%, 0%, 53.7%)
CIE-LABlab(21.37, 20.02, -44.40)
CIE-LCHlch(21.37, 48.70, 294.27°)
OKLaboklab(32.96% -0.0097 -0.1283)
OKLCHoklch(32.96% 0.129 265.7)
XYZxyz(4.5165, 3.3437, 17.5434)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D76 #765E15
analogous
#155D76 #152D76 #2E1576
triadic
#152D76 #76152D #2D7615
tetradic
#152D76 #76155D #765E15 #15762E
square
#152D76 #76155D #765E15 #15762E
split-complementary
#152D76 #762E15 #5D7615
monochromatic
#050A1A #0C1942 #152D76 #1E41AA #2C57D9

Accessibility & contrast

On white

12.58
#152D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D76
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D76#FFFFFF#000000##FFFFFF
##152D761.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152d76;
/* rgb */ color: rgb(21, 45, 118);
/* oklch */ color: oklch(33.0% 0.129 265.7);
Tailwind
colors: {
  custom: {
    50: '#64659e',
    500: '#152d76',
    950: '#000000',
  },
}
SCSS
$custom: #152d76;
$custom-light: #64659e;
$custom-dark: #000000;
JSON
{
  "hex": "#152d76",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 118
  },
  "hsl": {
    "h": 225.155,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.12868,
    "h": 265.7
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#152D76
secondary
#AC903B
accent
#C13BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152D76

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

Preview Lab → · Contrast checker → · Palette generator →

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