#152790#152790

#152790 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.171 H 267.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#152790
RGBrgb(21, 39, 144)
HSLhsl(231, 75%, 32%)
HSVhsv(231, 85%, 56%)
CMYKcmyk(85.4%, 72.9%, 0%, 43.5%)
CIE-LABlab(22.38, 34.37, -59.10)
CIE-LCHlch(22.38, 68.37, 300.18°)
OKLaboklab(34.49% -0.0078 -0.1713)
OKLCHoklch(34.49% 0.171 267.4)
XYZxyz(6.0671, 3.6233, 26.7598)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152790 #907E15
analogous
#156490 #152790 #411590
triadic
#152790 #901527 #279015
tetradic
#152790 #901564 #907E15 #159041
square
#152790 #901564 #907E15 #159041
split-complementary
#152790 #904115 #649015
monochromatic
#050A25 #0D195B #152790 #1D35C5 #3D55E3

Accessibility & contrast

On white

12.18
#152790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#152790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152790
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152790#FFFFFF#000000##FFFFFF
##1527901.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152790;
/* rgb */ color: rgb(21, 39, 144);
/* oklch */ color: oklch(34.5% 0.171 267.4);
Tailwind
colors: {
  custom: {
    50: '#6c61b2',
    500: '#152790',
    950: '#000000',
  },
}
SCSS
$custom: #152790;
$custom-light: #6c61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#152790",
  "rgb": {
    "r": 21,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 231.22,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34486,
    "c": 0.17148,
    "h": 267.4
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#152790
secondary
#C2AF3E
accent
#D637F1
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #152790

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

Preview Lab → · Contrast checker → · Palette generator →

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