#152A76#152A76

#152A76 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.133 H 266.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#152A76
RGBrgb(21, 42, 118)
HSLhsl(227, 70%, 27%)
HSVhsv(227, 82%, 46%)
CMYKcmyk(82.2%, 64.4%, 0%, 53.7%)
CIE-LABlab(20.53, 22.16, -45.77)
CIE-LCHlch(20.53, 50.85, 295.83°)
OKLaboklab(32.34% -0.0077 -0.1324)
OKLCHoklch(32.34% 0.133 266.7)
XYZxyz(4.4061, 3.1229, 17.5066)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A76 #766115
analogous
#155B76 #152A76 #301576
triadic
#152A76 #76152A #2A7615
tetradic
#152A76 #76155B #766115 #157630
square
#152A76 #76155B #766115 #157630
split-complementary
#152A76 #763015 #5B7615
monochromatic
#05091A #0C1842 #152A76 #1E3CAA #2C52D9

Accessibility & contrast

On white

12.93
#152A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A76
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A76#FFFFFF#000000##FFFFFF
##152A761.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152a76;
/* rgb */ color: rgb(21, 42, 118);
/* oklch */ color: oklch(32.3% 0.133 266.7);
Tailwind
colors: {
  custom: {
    50: '#64639e',
    500: '#152a76',
    950: '#000000',
  },
}
SCSS
$custom: #152a76;
$custom-light: #64639e;
$custom-dark: #000000;
JSON
{
  "hex": "#152a76",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 227.01,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32337,
    "c": 0.13262,
    "h": 266.7
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#152A76
secondary
#AC933B
accent
#C63BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A76

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

Preview Lab → · Contrast checker → · Palette generator →

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