#152181#152181

#152181 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.159 H 268.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#152181
RGBrgb(21, 33, 129)
HSLhsl(233, 72%, 29%)
HSVhsv(233, 84%, 51%)
CMYKcmyk(83.7%, 74.4%, 0%, 49.4%)
CIE-LABlab(19.36, 32.60, -54.70)
CIE-LCHlch(19.36, 63.68, 300.79°)
OKLaboklab(31.82% -0.0038 -0.1585)
OKLCHoklch(31.82% 0.159 268.6)
XYZxyz(4.8142, 2.8316, 21.0574)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152181 #817515
analogous
#155781 #152181 #3F1581
triadic
#152181 #811521 #218115
tetradic
#152181 #811557 #817515 #15813F
square
#152181 #811557 #817515 #15813F
split-complementary
#152181 #813F15 #578115
monochromatic
#04071A #0C144C #152181 #1E2EB6 #3346DE

Accessibility & contrast

On white

13.41
#152181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152181
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152181#FFFFFF#000000##FFFFFF
##1521811.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152181;
/* rgb */ color: rgb(21, 33, 129);
/* oklch */ color: oklch(31.8% 0.159 268.6);
Tailwind
colors: {
  custom: {
    50: '#695da7',
    500: '#152181',
    950: '#000000',
  },
}
SCSS
$custom: #152181;
$custom-light: #695da7;
$custom-dark: #000000;
JSON
{
  "hex": "#152181",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 233.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31819,
    "c": 0.15855,
    "h": 268.6
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#152181
secondary
#B6A83C
accent
#DB39EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #152181

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

Preview Lab → · Contrast checker → · Palette generator →

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