#152B70#152B70

#152B70 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.0% C 0.123 H 266.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#152B70
RGBrgb(21, 43, 112)
HSLhsl(225, 68%, 26%)
HSVhsv(225, 81%, 44%)
CMYKcmyk(81.2%, 61.6%, 0%, 56.1%)
CIE-LABlab(20.27, 18.98, -42.34)
CIE-LCHlch(20.27, 46.40, 294.14°)
OKLaboklab(31.98% -0.0085 -0.1223)
OKLCHoklch(31.98% 0.123 266)
XYZxyz(4.0967, 3.0566, 15.7002)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B70 #705A15
analogous
#155870 #152B70 #2D1570
triadic
#152B70 #70152B #2B7015
tetradic
#152B70 #701558 #705A15 #15702D
square
#152B70 #701558 #705A15 #15702D
split-complementary
#152B70 #702D15 #587015
monochromatic
#050A1A #0B173C #152B70 #1F3FA4 #2953D7

Accessibility & contrast

On white

13.03
#152B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#152B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B70
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B70#FFFFFF#000000##FFFFFF
##152B701.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152b70;
/* rgb */ color: rgb(21, 43, 112);
/* oklch */ color: oklch(32.0% 0.123 266.0);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#152b70',
    950: '#000000',
  },
}
SCSS
$custom: #152b70;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#152b70",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 112
  },
  "hsl": {
    "h": 225.495,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31975,
    "c": 0.12262,
    "h": 266
  },
  "luminance": 0.03057
}

Semantic roles & 50–950 ramp

primary
#152B70
secondary
#A68C3B
accent
#C13DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152B70

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

Preview Lab → · Contrast checker → · Palette generator →

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