#152280#152280

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

Color values

HEX#152280
RGBrgb(21, 34, 128)
HSLhsl(233, 72%, 29%)
HSVhsv(233, 84%, 50%)
CMYKcmyk(83.6%, 73.4%, 0%, 49.8%)
CIE-LABlab(19.48, 31.58, -53.86)
CIE-LCHlch(19.48, 62.44, 300.38°)
OKLaboklab(31.88% -0.0041 -0.1561)
OKLCHoklch(31.88% 0.156 268.5)
XYZxyz(4.7762, 2.8614, 20.7185)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152280 #807315
analogous
#155880 #152280 #3E1580
triadic
#152280 #801522 #228015
tetradic
#152280 #801558 #807315 #15803E
square
#152280 #801558 #807315 #15803E
split-complementary
#152280 #803E15 #588015
monochromatic
#04071A #0C144B #152280 #1E30B5 #3247DD

Accessibility & contrast

On white

13.36
#152280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152280
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152280#FFFFFF#000000##FFFFFF
##1522801.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152280;
/* rgb */ color: rgb(21, 34, 128);
/* oklch */ color: oklch(31.9% 0.156 268.5);
Tailwind
colors: {
  custom: {
    50: '#685da6',
    500: '#152280',
    950: '#000000',
  },
}
SCSS
$custom: #152280;
$custom-light: #685da6;
$custom-dark: #000000;
JSON
{
  "hex": "#152280",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 232.71,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31876,
    "c": 0.15611,
    "h": 268.5
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#152280
secondary
#B5A63C
accent
#D939EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #152280

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

Preview Lab → · Contrast checker → · Palette generator →

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