#152D72#152D72

#152D72 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.6% C 0.123 H 265.4°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#152D72
RGBrgb(21, 45, 114)
HSLhsl(225, 69%, 26%)
HSVhsv(225, 82%, 45%)
CMYKcmyk(81.6%, 60.5%, 0%, 55.3%)
CIE-LABlab(21.02, 18.36, -42.41)
CIE-LCHlch(21.02, 46.21, 293.42°)
OKLaboklab(32.59% -0.0099 -0.1225)
OKLCHoklch(32.59% 0.123 265.4)
XYZxyz(4.2838, 3.2506, 16.3180)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D72 #725A15
analogous
#155C72 #152D72 #2C1572
triadic
#152D72 #72152D #2D7215
tetradic
#152D72 #72155C #725A15 #15722C
square
#152D72 #72155C #725A15 #15722C
split-complementary
#152D72 #722C15 #5C7215
monochromatic
#050A1A #0B193E #152D72 #1F41A6 #2A57D8

Accessibility & contrast

On white

12.73
#152D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152D72
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D72#FFFFFF#000000##FFFFFF
##152D721.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152d72;
/* rgb */ color: rgb(21, 45, 114);
/* oklch */ color: oklch(32.6% 0.123 265.4);
Tailwind
colors: {
  custom: {
    50: '#63659b',
    500: '#152d72',
    950: '#000000',
  },
}
SCSS
$custom: #152d72;
$custom-light: #63659b;
$custom-dark: #000000;
JSON
{
  "hex": "#152d72",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 224.516,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32592,
    "c": 0.12286,
    "h": 265.4
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#152D72
secondary
#A88C3B
accent
#BE3CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152D72

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

Preview Lab → · Contrast checker → · Palette generator →

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