#152981#152981

#152981 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.149 H 267.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#152981
RGBrgb(21, 41, 129)
HSLhsl(229, 72%, 29%)
HSVhsv(229, 84%, 51%)
CMYKcmyk(83.7%, 68.2%, 0%, 49.4%)
CIE-LABlab(21.32, 27.28, -51.47)
CIE-LCHlch(21.32, 58.25, 297.92°)
OKLaboklab(33.24% -0.0075 -0.1491)
OKLCHoklch(33.24% 0.149 267.1)
XYZxyz(5.0633, 3.3297, 21.1405)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152981 #816D15
analogous
#155F81 #152981 #371581
triadic
#152981 #811529 #298115
tetradic
#152981 #81155F #816D15 #158137
square
#152981 #81155F #816D15 #158137
split-complementary
#152981 #813715 #5F8115
monochromatic
#04081A #0C184C #152981 #1E3AB6 #3352DE

Accessibility & contrast

On white

12.61
#152981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152981
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152981#FFFFFF#000000##FFFFFF
##1529811.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152981;
/* rgb */ color: rgb(21, 41, 129);
/* oklch */ color: oklch(33.2% 0.149 267.1);
Tailwind
colors: {
  custom: {
    50: '#6862a6',
    500: '#152981',
    950: '#000000',
  },
}
SCSS
$custom: #152981;
$custom-light: #6862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152981",
  "rgb": {
    "r": 21,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 228.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.14925,
    "h": 267.1
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#152981
secondary
#B69F3C
accent
#CD39EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152981

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

Preview Lab → · Contrast checker → · Palette generator →

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