#152C7F#152C7F

#152C7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.143 H 266.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#152C7F
RGBrgb(21, 44, 127)
HSLhsl(227, 72%, 29%)
HSVhsv(227, 83%, 50%)
CMYKcmyk(83.5%, 65.4%, 0%, 50.2%)
CIE-LABlab(21.92, 24.40, -49.22)
CIE-LCHlch(21.92, 54.94, 296.37°)
OKLaboklab(33.62% -0.0091 -0.1425)
OKLCHoklch(33.62% 0.143 266.4)
XYZxyz(5.0394, 3.4925, 20.4831)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C7F #7F6815
analogous
#15617F #152C7F #33157F
triadic
#152C7F #7F152C #2C7F15
tetradic
#152C7F #7F1561 #7F6815 #157F33
square
#152C7F #7F1561 #7F6815 #157F33
split-complementary
#152C7F #7F3315 #617F15
monochromatic
#04091A #0C1A4A #152C7F #1E3EB4 #3157DD

Accessibility & contrast

On white

12.36
#152C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152C7F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C7F#FFFFFF#000000##FFFFFF
##152C7F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152c7f;
/* rgb */ color: rgb(21, 44, 127);
/* oklch */ color: oklch(33.6% 0.143 266.4);
Tailwind
colors: {
  custom: {
    50: '#6764a5',
    500: '#152c7f',
    950: '#000000',
  },
}
SCSS
$custom: #152c7f;
$custom-light: #6764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#152c7f",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 226.981,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33624,
    "c": 0.14276,
    "h": 266.4
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#152C7F
secondary
#B49A3C
accent
#C739EE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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