#152970#152970

#152970 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.125 H 266.8°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#152970
RGBrgb(21, 41, 112)
HSLhsl(227, 68%, 26%)
HSVhsv(227, 81%, 44%)
CMYKcmyk(81.2%, 63.4%, 0%, 56.1%)
CIE-LABlab(19.70, 20.42, -43.27)
CIE-LCHlch(19.70, 47.85, 295.26°)
OKLaboklab(31.55% -0.0071 -0.1251)
OKLCHoklch(31.55% 0.125 266.8)
XYZxyz(4.0258, 2.9147, 15.6765)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152970 #705C15
analogous
#155670 #152970 #2E1570
triadic
#152970 #701529 #297015
tetradic
#152970 #701556 #705C15 #15702E
square
#152970 #701556 #705C15 #15702E
split-complementary
#152970 #702E15 #567015
monochromatic
#05091A #0B163C #152970 #1F3CA4 #294FD7

Accessibility & contrast

On white

13.27
#152970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152970
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152970#FFFFFF#000000##FFFFFF
##1529701.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152970;
/* rgb */ color: rgb(21, 41, 112);
/* oklch */ color: oklch(31.5% 0.125 266.8);
Tailwind
colors: {
  custom: {
    50: '#63629a',
    500: '#152970',
    950: '#000000',
  },
}
SCSS
$custom: #152970;
$custom-light: #63629a;
$custom-dark: #000000;
JSON
{
  "hex": "#152970",
  "rgb": {
    "r": 21,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 226.813,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31549,
    "c": 0.12528,
    "h": 266.8
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#152970
secondary
#A68F3B
accent
#C53DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152970

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

Preview Lab → · Contrast checker → · Palette generator →

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