#152870#152870

#152870 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.127 H 267.1°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#152870
RGBrgb(21, 40, 112)
HSLhsl(227, 68%, 26%)
HSVhsv(227, 81%, 44%)
CMYKcmyk(81.2%, 64.3%, 0%, 56.1%)
CIE-LABlab(19.42, 21.13, -43.73)
CIE-LCHlch(19.42, 48.57, 295.79°)
OKLaboklab(31.34% -0.0064 -0.1264)
OKLCHoklch(31.34% 0.127 267.1)
XYZxyz(3.9917, 2.8464, 15.6651)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152870 #705D15
analogous
#155570 #152870 #2F1570
triadic
#152870 #701528 #287015
tetradic
#152870 #701555 #705D15 #15702F
square
#152870 #701555 #705D15 #15702F
split-complementary
#152870 #702F15 #557015
monochromatic
#05091A #0B163C #152870 #1F3AA4 #294DD7

Accessibility & contrast

On white

13.38
#152870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152870
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152870#FFFFFF#000000##FFFFFF
##1528701.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152870;
/* rgb */ color: rgb(21, 40, 112);
/* oklch */ color: oklch(31.3% 0.127 267.1);
Tailwind
colors: {
  custom: {
    50: '#63619a',
    500: '#152870',
    950: '#000000',
  },
}
SCSS
$custom: #152870;
$custom-light: #63619a;
$custom-dark: #000000;
JSON
{
  "hex": "#152870",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 227.473,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31341,
    "c": 0.1266,
    "h": 267.1
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#152870
secondary
#A6903B
accent
#C73DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152870

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

Preview Lab → · Contrast checker → · Palette generator →

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