#152281#152281

#152281 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.157 H 268.5°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#152281
RGBrgb(21, 34, 129)
HSLhsl(233, 72%, 29%)
HSVhsv(233, 84%, 51%)
CMYKcmyk(83.7%, 73.6%, 0%, 49.4%)
CIE-LABlab(19.59, 31.96, -54.32)
CIE-LCHlch(19.59, 63.02, 300.47°)
OKLaboklab(31.99% -0.0042 -0.1574)
OKLCHoklch(31.99% 0.157 268.5)
XYZxyz(4.8424, 2.8879, 21.0668)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152281 #817415
analogous
#155881 #152281 #3E1581
triadic
#152281 #811522 #228115
tetradic
#152281 #811558 #817415 #15813E
square
#152281 #811558 #817415 #15813E
split-complementary
#152281 #813E15 #588115
monochromatic
#04071A #0C144C #152281 #1E30B6 #3347DE

Accessibility & contrast

On white

13.31
#152281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152281
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152281#FFFFFF#000000##FFFFFF
##1522811.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152281;
/* rgb */ color: rgb(21, 34, 129);
/* oklch */ color: oklch(32.0% 0.157 268.5);
Tailwind
colors: {
  custom: {
    50: '#685da7',
    500: '#152281',
    950: '#000000',
  },
}
SCSS
$custom: #152281;
$custom-light: #685da7;
$custom-dark: #000000;
JSON
{
  "hex": "#152281",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 232.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31987,
    "c": 0.15744,
    "h": 268.5
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#152281
secondary
#B6A73C
accent
#D939EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #152281

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

Preview Lab → · Contrast checker → · Palette generator →

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