#152180#152180

#152180 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.157 H 268.7°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#152180
RGBrgb(21, 33, 128)
HSLhsl(233, 72%, 29%)
HSVhsv(233, 84%, 50%)
CMYKcmyk(83.6%, 74.2%, 0%, 49.8%)
CIE-LABlab(19.25, 32.23, -54.25)
CIE-LCHlch(19.25, 63.10, 300.71°)
OKLaboklab(31.71% -0.0037 -0.1572)
OKLCHoklch(31.71% 0.157 268.7)
XYZxyz(4.7481, 2.8051, 20.7091)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152180 #807415
analogous
#155780 #152180 #3F1580
triadic
#152180 #801521 #218015
tetradic
#152180 #801557 #807415 #15803F
square
#152180 #801557 #807415 #15803F
split-complementary
#152180 #803F15 #578015
monochromatic
#04071A #0C134B #152180 #1E2FB5 #3245DD

Accessibility & contrast

On white

13.45
#152180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#152180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152180
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152180#FFFFFF#000000##FFFFFF
##1521801.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152180;
/* rgb */ color: rgb(21, 33, 128);
/* oklch */ color: oklch(31.7% 0.157 268.7);
Tailwind
colors: {
  custom: {
    50: '#685da6',
    500: '#152180',
    950: '#000000',
  },
}
SCSS
$custom: #152180;
$custom-light: #685da6;
$custom-dark: #000000;
JSON
{
  "hex": "#152180",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 233.271,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31707,
    "c": 0.15723,
    "h": 268.7
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#152180
secondary
#B5A73C
accent
#DA39EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #152180

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

Preview Lab → · Contrast checker → · Palette generator →

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