#152A70#152A70

#152A70 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.124 H 266.4°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#152A70
RGBrgb(21, 42, 112)
HSLhsl(226, 68%, 26%)
HSVhsv(226, 81%, 44%)
CMYKcmyk(81.2%, 62.5%, 0%, 56.1%)
CIE-LABlab(19.98, 19.70, -42.81)
CIE-LCHlch(19.98, 47.13, 294.71°)
OKLaboklab(31.76% -0.0078 -0.1237)
OKLCHoklch(31.76% 0.124 266.4)
XYZxyz(4.0608, 2.9847, 15.6882)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A70 #705B15
analogous
#155770 #152A70 #2D1570
triadic
#152A70 #70152A #2A7015
tetradic
#152A70 #701557 #705B15 #15702D
square
#152A70 #701557 #705B15 #15702D
split-complementary
#152A70 #702D15 #577015
monochromatic
#050A1A #0B173C #152A70 #1F3DA4 #2951D7

Accessibility & contrast

On white

13.15
#152A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#152A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A70
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A70#FFFFFF#000000##FFFFFF
##152A701.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152a70;
/* rgb */ color: rgb(21, 42, 112);
/* oklch */ color: oklch(31.8% 0.124 266.4);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#152a70',
    950: '#000000',
  },
}
SCSS
$custom: #152a70;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#152a70",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 226.154,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31761,
    "c": 0.12395,
    "h": 266.4
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#152A70
secondary
#A68D3B
accent
#C33DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A70

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

Preview Lab → · Contrast checker → · Palette generator →

#152A70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva