#152C7E#152C7E

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

Color values

HEX#152C7E
RGBrgb(21, 44, 126)
HSLhsl(227, 71%, 29%)
HSVhsv(227, 83%, 49%)
CMYKcmyk(83.3%, 65.1%, 0%, 50.6%)
CIE-LABlab(21.82, 24.00, -48.74)
CIE-LCHlch(21.82, 54.33, 296.21°)
OKLaboklab(33.53% -0.009 -0.1411)
OKLCHoklch(33.53% 0.141 266.3)
XYZxyz(4.9745, 3.4666, 20.1416)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C7E #7E6715
analogous
#15617E #152C7E #33157E
triadic
#152C7E #7E152C #2C7E15
tetradic
#152C7E #7E1561 #7E6715 #157E33
square
#152C7E #7E1561 #7E6715 #157E33
split-complementary
#152C7E #7E3315 #617E15
monochromatic
#04091A #0C1A4A #152C7E #1E3EB2 #3156DD

Accessibility & contrast

On white

12.40
#152C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#152C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C7E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C7E#FFFFFF#000000##FFFFFF
##152C7E1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152c7e;
/* rgb */ color: rgb(21, 44, 126);
/* oklch */ color: oklch(33.5% 0.141 266.3);
Tailwind
colors: {
  custom: {
    50: '#6764a4',
    500: '#152c7e',
    950: '#000000',
  },
}
SCSS
$custom: #152c7e;
$custom-light: #6764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#152c7e",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 226.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33525,
    "c": 0.14136,
    "h": 266.3
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#152C7E
secondary
#B3993C
accent
#C73AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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