#152A7B#152A7B

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

Color values

HEX#152A7B
RGBrgb(21, 42, 123)
HSLhsl(228, 71%, 28%)
HSVhsv(228, 83%, 48%)
CMYKcmyk(82.9%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.00, 24.19, -48.19)
CIE-LCHlch(21.00, 53.92, 296.65°)
OKLaboklab(32.83% -0.0078 -0.1395)
OKLCHoklch(32.83% 0.14 266.8)
XYZxyz(4.7111, 3.2449, 19.1131)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A7B #7B6615
analogous
#155D7B #152A7B #33157B
triadic
#152A7B #7B152A #2A7B15
tetradic
#152A7B #7B155D #7B6615 #157B33
square
#152A7B #7B155D #7B6615 #157B33
split-complementary
#152A7B #7B3315 #5D7B15
monochromatic
#04091A #0C1847 #152A7B #1E3CAF #2F52DB

Accessibility & contrast

On white

12.73
#152A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A7B
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A7B#FFFFFF#000000##FFFFFF
##152A7B1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152a7b;
/* rgb */ color: rgb(21, 42, 123);
/* oklch */ color: oklch(32.8% 0.140 266.8);
Tailwind
colors: {
  custom: {
    50: '#6663a2',
    500: '#152a7b',
    950: '#000000',
  },
}
SCSS
$custom: #152a7b;
$custom-light: #6663a2;
$custom-dark: #000000;
JSON
{
  "hex": "#152a7b",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 227.647,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32829,
    "c": 0.13969,
    "h": 266.8
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#152A7B
secondary
#B0983B
accent
#C93AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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