#152C7A#152C7A

#152C7A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.136 H 266.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#152C7A
RGBrgb(21, 44, 122)
HSLhsl(226, 71%, 28%)
HSVhsv(226, 83%, 48%)
CMYKcmyk(82.8%, 63.9%, 0%, 52.2%)
CIE-LABlab(21.45, 22.37, -46.82)
CIE-LCHlch(21.45, 51.89, 295.54°)
OKLaboklab(33.14% -0.009 -0.1354)
OKLCHoklch(33.14% 0.136 266.2)
XYZxyz(4.7216, 3.3654, 18.8093)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C7A #7A6315
analogous
#155E7A #152C7A #31157A
triadic
#152C7A #7A152C #2C7A15
tetradic
#152C7A #7A155E #7A6315 #157A31
square
#152C7A #7A155E #7A6315 #157A31
split-complementary
#152C7A #7A3115 #5E7A15
monochromatic
#04091A #0C1946 #152C7A #1E3FAE #2E56DB

Accessibility & contrast

On white

12.55
#152C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152C7A
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C7A#FFFFFF#000000##FFFFFF
##152C7A1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152c7a;
/* rgb */ color: rgb(21, 44, 122);
/* oklch */ color: oklch(33.1% 0.136 266.2);
Tailwind
colors: {
  custom: {
    50: '#6564a1',
    500: '#152c7a',
    950: '#000000',
  },
}
SCSS
$custom: #152c7a;
$custom-light: #6564a1;
$custom-dark: #000000;
JSON
{
  "hex": "#152c7a",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 226.337,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.13572,
    "h": 266.2
  },
  "luminance": 0.03366
}

Semantic roles & 50–950 ramp

primary
#152C7A
secondary
#AF953B
accent
#C53AED
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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