#152A74#152A74

#152A74 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.130 H 266.6°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#152A74
RGBrgb(21, 42, 116)
HSLhsl(227, 69%, 27%)
HSVhsv(227, 82%, 45%)
CMYKcmyk(81.9%, 63.8%, 0%, 54.5%)
CIE-LABlab(20.34, 21.34, -44.79)
CIE-LCHlch(20.34, 49.62, 295.48°)
OKLaboklab(32.14% -0.0077 -0.1295)
OKLCHoklch(32.14% 0.13 266.6)
XYZxyz(4.2885, 3.0758, 16.8873)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A74 #745F15
analogous
#155A74 #152A74 #301574
triadic
#152A74 #74152A #2A7415
tetradic
#152A74 #74155A #745F15 #157430
square
#152A74 #74155A #745F15 #157430
split-complementary
#152A74 #743015 #5A7415
monochromatic
#05091A #0C1740 #152A74 #1E3DA8 #2B51D9

Accessibility & contrast

On white

13.00
#152A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A74
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A74#FFFFFF#000000##FFFFFF
##152A741.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152a74;
/* rgb */ color: rgb(21, 42, 116);
/* oklch */ color: oklch(32.1% 0.130 266.6);
Tailwind
colors: {
  custom: {
    50: '#64639d',
    500: '#152a74',
    950: '#000000',
  },
}
SCSS
$custom: #152a74;
$custom-light: #64639d;
$custom-dark: #000000;
JSON
{
  "hex": "#152a74",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 226.737,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32143,
    "c": 0.12974,
    "h": 266.6
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#152A74
secondary
#AA913B
accent
#C53CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A74

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

Preview Lab → · Contrast checker → · Palette generator →

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