#152884#152884

#152884 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.155 H 267.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#152884
RGBrgb(21, 40, 132)
HSLhsl(230, 73%, 30%)
HSVhsv(230, 84%, 52%)
CMYKcmyk(84.1%, 69.7%, 0%, 48.2%)
CIE-LABlab(21.37, 29.14, -53.28)
CIE-LCHlch(21.37, 60.73, 298.67°)
OKLaboklab(33.37% -0.0071 -0.1544)
OKLCHoklch(33.37% 0.155 267.4)
XYZxyz(5.2315, 3.3423, 22.1947)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152884 #847115
analogous
#155F84 #152884 #3A1584
triadic
#152884 #841528 #288415
tetradic
#152884 #84155F #847115 #15843A
square
#152884 #84155F #847115 #15843A
split-complementary
#152884 #843A15 #5F8415
monochromatic
#04081A #0D184F #152884 #1D38B9 #3552DF

Accessibility & contrast

On white

12.59
#152884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152884
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152884#FFFFFF#000000##FFFFFF
##1528841.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152884;
/* rgb */ color: rgb(21, 40, 132);
/* oklch */ color: oklch(33.4% 0.155 267.4);
Tailwind
colors: {
  custom: {
    50: '#6962a9',
    500: '#152884',
    950: '#000000',
  },
}
SCSS
$custom: #152884;
$custom-light: #6962a9;
$custom-dark: #000000;
JSON
{
  "hex": "#152884",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 229.73,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.15453,
    "h": 267.4
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#152884
secondary
#B9A33C
accent
#D039EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #152884

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

Preview Lab → · Contrast checker → · Palette generator →

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