#152D74#152D74

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

Color values

HEX#152D74
RGBrgb(21, 45, 116)
HSLhsl(225, 69%, 27%)
HSVhsv(225, 82%, 45%)
CMYKcmyk(81.9%, 61.2%, 0%, 54.5%)
CIE-LABlab(21.19, 19.20, -43.41)
CIE-LCHlch(21.19, 47.46, 293.86°)
OKLaboklab(32.78% -0.0098 -0.1254)
OKLCHoklch(32.78% 0.126 265.5)
XYZxyz(4.3989, 3.2966, 16.9241)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D74 #745C15
analogous
#155D74 #152D74 #2D1574
triadic
#152D74 #74152D #2D7415
tetradic
#152D74 #74155D #745C15 #15742D
square
#152D74 #74155D #745C15 #15742D
split-complementary
#152D74 #742D15 #5D7415
monochromatic
#050A1A #0C1940 #152D74 #1E41A8 #2B57D9

Accessibility & contrast

On white

12.66
#152D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D74
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D74#FFFFFF#000000##FFFFFF
##152D741.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152d74;
/* rgb */ color: rgb(21, 45, 116);
/* oklch */ color: oklch(32.8% 0.126 265.5);
Tailwind
colors: {
  custom: {
    50: '#64659d',
    500: '#152d74',
    950: '#000000',
  },
}
SCSS
$custom: #152d74;
$custom-light: #64659d;
$custom-dark: #000000;
JSON
{
  "hex": "#152d74",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 224.842,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32777,
    "c": 0.12578,
    "h": 265.5
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#152D74
secondary
#AA8E3B
accent
#C03CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152D74

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

Preview Lab → · Contrast checker → · Palette generator →

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