#152579#152579

#152579 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.143 H 268.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#152579
RGBrgb(21, 37, 121)
HSLhsl(230, 70%, 28%)
HSVhsv(230, 83%, 47%)
CMYKcmyk(82.6%, 69.4%, 0%, 52.5%)
CIE-LABlab(19.48, 26.86, -49.40)
CIE-LCHlch(19.48, 56.23, 298.54°)
OKLaboklab(31.66% -0.0049 -0.1431)
OKLCHoklch(31.66% 0.143 268)
XYZxyz(4.4208, 2.8625, 18.4050)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152579 #796915
analogous
#155779 #152579 #371579
triadic
#152579 #791525 #257915
tetradic
#152579 #791557 #796915 #157937
square
#152579 #791557 #796915 #157937
split-complementary
#152579 #793715 #577915
monochromatic
#05081A #0C1545 #152579 #1E35AD #2E49DB

Accessibility & contrast

On white

13.35
#152579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152579
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152579#FFFFFF#000000##FFFFFF
##1525791.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152579;
/* rgb */ color: rgb(21, 37, 121);
/* oklch */ color: oklch(31.7% 0.143 268.0);
Tailwind
colors: {
  custom: {
    50: '#665fa1',
    500: '#152579',
    950: '#000000',
  },
}
SCSS
$custom: #152579;
$custom-light: #665fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#152579",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 230.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31657,
    "c": 0.14314,
    "h": 268
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#152579
secondary
#AF9C3B
accent
#D13BED
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #152579

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

Preview Lab → · Contrast checker → · Palette generator →

#152579 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva