#152C70#152C70

#152C70 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.121 H 265.6°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#152C70
RGBrgb(21, 44, 112)
HSLhsl(225, 68%, 26%)
HSVhsv(225, 81%, 44%)
CMYKcmyk(81.2%, 60.7%, 0%, 56.1%)
CIE-LABlab(20.56, 18.25, -41.87)
CIE-LCHlch(20.56, 45.68, 293.55°)
OKLaboklab(32.19% -0.0092 -0.1209)
OKLCHoklch(32.19% 0.121 265.6)
XYZxyz(4.1335, 3.1302, 15.7124)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C70 #705915
analogous
#155970 #152C70 #2B1570
triadic
#152C70 #70152C #2C7015
tetradic
#152C70 #701559 #705915 #15702B
square
#152C70 #701559 #705915 #15702B
split-complementary
#152C70 #702B15 #597015
monochromatic
#050A1A #0B183C #152C70 #1F40A4 #2955D7

Accessibility & contrast

On white

12.91
#152C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C70
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C70#FFFFFF#000000##FFFFFF
##152C701.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152c70;
/* rgb */ color: rgb(21, 44, 112);
/* oklch */ color: oklch(32.2% 0.121 265.6);
Tailwind
colors: {
  custom: {
    50: '#63649a',
    500: '#152c70',
    950: '#000000',
  },
}
SCSS
$custom: #152c70;
$custom-light: #63649a;
$custom-dark: #000000;
JSON
{
  "hex": "#152c70",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 112
  },
  "hsl": {
    "h": 224.835,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32191,
    "c": 0.12127,
    "h": 265.6
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#152C70
secondary
#A68B3B
accent
#BF3DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152C70

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

Preview Lab → · Contrast checker → · Palette generator →

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