#152D7C#152D7C

#152D7C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.137 H 266.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#152D7C
RGBrgb(21, 45, 124)
HSLhsl(226, 71%, 28%)
HSVhsv(226, 83%, 49%)
CMYKcmyk(83.1%, 63.7%, 0%, 51.4%)
CIE-LABlab(21.91, 22.48, -47.33)
CIE-LCHlch(21.91, 52.40, 295.41°)
OKLaboklab(33.53% -0.0096 -0.1369)
OKLCHoklch(33.53% 0.137 266)
XYZxyz(4.8845, 3.4909, 19.4812)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D7C #7C6415
analogous
#15607C #152D7C #30157C
triadic
#152D7C #7C152D #2D7C15
tetradic
#152D7C #7C1560 #7C6415 #157C30
square
#152D7C #7C1560 #7C6415 #157C30
split-complementary
#152D7C #7C3015 #607C15
monochromatic
#04091A #0C1A48 #152D7C #1E40B0 #3058DC

Accessibility & contrast

On white

12.37
#152D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#152D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D7C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D7C#FFFFFF#000000##FFFFFF
##152D7C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152d7c;
/* rgb */ color: rgb(21, 45, 124);
/* oklch */ color: oklch(33.5% 0.137 266.0);
Tailwind
colors: {
  custom: {
    50: '#6665a3',
    500: '#152d7c',
    950: '#000000',
  },
}
SCSS
$custom: #152d7c;
$custom-light: #6665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152d7c",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 226.019,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33534,
    "c": 0.13726,
    "h": 266
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#152D7C
secondary
#B1963C
accent
#C43AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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