#152E72#152E72

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

Color values

HEX#152E72
RGBrgb(21, 46, 114)
HSLhsl(224, 69%, 26%)
HSVhsv(224, 82%, 45%)
CMYKcmyk(81.6%, 59.6%, 0%, 55.3%)
CIE-LABlab(21.31, 17.64, -41.93)
CIE-LCHlch(21.31, 45.49, 292.82°)
OKLaboklab(32.81% -0.0106 -0.1211)
OKLCHoklch(32.81% 0.122 265)
XYZxyz(4.3224, 3.3278, 16.3309)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E72 #725915
analogous
#155D72 #152E72 #2B1572
triadic
#152E72 #72152E #2E7215
tetradic
#152E72 #72155D #725915 #15722B
square
#152E72 #72155D #725915 #15722B
split-complementary
#152E72 #722B15 #5D7215
monochromatic
#050A1A #0B193E #152E72 #1F43A6 #2A58D8

Accessibility & contrast

On white

12.61
#152E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152E72
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E72#FFFFFF#000000##FFFFFF
##152E721.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152e72;
/* rgb */ color: rgb(21, 46, 114);
/* oklch */ color: oklch(32.8% 0.122 265.0);
Tailwind
colors: {
  custom: {
    50: '#63669b',
    500: '#152e72',
    950: '#000000',
  },
}
SCSS
$custom: #152e72;
$custom-light: #63669b;
$custom-dark: #000000;
JSON
{
  "hex": "#152e72",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 223.871,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3281,
    "c": 0.12153,
    "h": 265
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#152E72
secondary
#A88B3B
accent
#BD3CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152E72

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

Preview Lab → · Contrast checker → · Palette generator →

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