#152479#152479

#152479 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.144 H 268.3°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#152479
RGBrgb(21, 36, 121)
HSLhsl(231, 70%, 28%)
HSVhsv(231, 83%, 47%)
CMYKcmyk(82.6%, 70.2%, 0%, 52.5%)
CIE-LABlab(19.23, 27.55, -49.82)
CIE-LCHlch(19.23, 56.93, 298.94°)
OKLaboklab(31.47% -0.0043 -0.1443)
OKLCHoklch(31.47% 0.144 268.3)
XYZxyz(4.3901, 2.8012, 18.3948)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152479 #796A15
analogous
#155679 #152479 #381579
triadic
#152479 #791524 #247915
tetradic
#152479 #791556 #796A15 #157938
square
#152479 #791556 #796A15 #157938
split-complementary
#152479 #793815 #567915
monochromatic
#05081A #0C1445 #152479 #1E34AD #2E48DB

Accessibility & contrast

On white

13.46
#152479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#152479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152479
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152479#FFFFFF#000000##FFFFFF
##1524791.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152479;
/* rgb */ color: rgb(21, 36, 121);
/* oklch */ color: oklch(31.5% 0.144 268.3);
Tailwind
colors: {
  custom: {
    50: '#665ea1',
    500: '#152479',
    950: '#000000',
  },
}
SCSS
$custom: #152479;
$custom-light: #665ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#152479",
  "rgb": {
    "r": 21,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 231,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31471,
    "c": 0.14436,
    "h": 268.3
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#152479
secondary
#AF9D3B
accent
#D23BED
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #152479

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

Preview Lab → · Contrast checker → · Palette generator →

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