#152C72#152C72

#152C72 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.4% C 0.124 H 265.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#152C72
RGBrgb(21, 44, 114)
HSLhsl(225, 69%, 26%)
HSVhsv(225, 82%, 45%)
CMYKcmyk(81.6%, 61.4%, 0%, 55.3%)
CIE-LABlab(20.73, 19.08, -42.88)
CIE-LCHlch(20.73, 46.93, 293.99°)
OKLaboklab(32.38% -0.0092 -0.1239)
OKLCHoklch(32.38% 0.124 265.8)
XYZxyz(4.2461, 3.1752, 16.3054)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C72 #725B15
analogous
#155B72 #152C72 #2D1572
triadic
#152C72 #72152C #2C7215
tetradic
#152C72 #72155B #725B15 #15722D
square
#152C72 #72155B #725B15 #15722D
split-complementary
#152C72 #722D15 #5B7215
monochromatic
#050A1A #0B183E #152C72 #1F40A6 #2A55D8

Accessibility & contrast

On white

12.84
#152C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#152C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C72
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C72#FFFFFF#000000##FFFFFF
##152C721.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152c72;
/* rgb */ color: rgb(21, 44, 114);
/* oklch */ color: oklch(32.4% 0.124 265.8);
Tailwind
colors: {
  custom: {
    50: '#63649b',
    500: '#152c72',
    950: '#000000',
  },
}
SCSS
$custom: #152c72;
$custom-light: #63649b;
$custom-dark: #000000;
JSON
{
  "hex": "#152c72",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 114
  },
  "hsl": {
    "h": 225.161,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32376,
    "c": 0.1242,
    "h": 265.8
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#152C72
secondary
#A88D3B
accent
#C03CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152C72

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

Preview Lab → · Contrast checker → · Palette generator →

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