#152A7A#152A7A

#152A7A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.138 H 266.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#152A7A
RGBrgb(21, 42, 122)
HSLhsl(228, 71%, 28%)
HSVhsv(228, 83%, 48%)
CMYKcmyk(82.8%, 65.6%, 0%, 52.2%)
CIE-LABlab(20.90, 23.78, -47.71)
CIE-LCHlch(20.90, 53.31, 296.50°)
OKLaboklab(32.73% -0.0078 -0.1381)
OKLCHoklch(32.73% 0.138 266.8)
XYZxyz(4.6488, 3.2200, 18.7851)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A7A #7A6515
analogous
#155C7A #152A7A #33157A
triadic
#152A7A #7A152A #2A7A15
tetradic
#152A7A #7A155C #7A6515 #157A33
square
#152A7A #7A155C #7A6515 #157A33
split-complementary
#152A7A #7A3315 #5C7A15
monochromatic
#04091A #0C1846 #152A7A #1E3CAE #2E52DB

Accessibility & contrast

On white

12.77
#152A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A7A
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A7A#FFFFFF#000000##FFFFFF
##152A7A1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152a7a;
/* rgb */ color: rgb(21, 42, 122);
/* oklch */ color: oklch(32.7% 0.138 266.8);
Tailwind
colors: {
  custom: {
    50: '#6663a1',
    500: '#152a7a',
    950: '#000000',
  },
}
SCSS
$custom: #152a7a;
$custom-light: #6663a1;
$custom-dark: #000000;
JSON
{
  "hex": "#152a7a",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 227.525,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3273,
    "c": 0.13829,
    "h": 266.8
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#152A7A
secondary
#AF973B
accent
#C83AED
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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