#152D70#152D70

#152D70 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.120 H 265.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#152D70
RGBrgb(21, 45, 112)
HSLhsl(224, 68%, 26%)
HSVhsv(224, 81%, 44%)
CMYKcmyk(81.2%, 59.8%, 0%, 56.1%)
CIE-LABlab(20.85, 17.53, -41.40)
CIE-LCHlch(20.85, 44.96, 292.95°)
OKLaboklab(32.41% -0.01 -0.1195)
OKLCHoklch(32.41% 0.12 265.2)
XYZxyz(4.1712, 3.2056, 15.7250)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D70 #705815
analogous
#155A70 #152D70 #2A1570
triadic
#152D70 #70152D #2D7015
tetradic
#152D70 #70155A #705815 #15702A
square
#152D70 #70155A #705815 #15702A
split-complementary
#152D70 #702A15 #5A7015
monochromatic
#050A1A #0B183C #152D70 #1F42A4 #2957D7

Accessibility & contrast

On white

12.80
#152D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#152D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D70
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D70#FFFFFF#000000##FFFFFF
##152D701.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003772
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152d70;
/* rgb */ color: rgb(21, 45, 112);
/* oklch */ color: oklch(32.4% 0.120 265.2);
Tailwind
colors: {
  custom: {
    50: '#63659a',
    500: '#152d70',
    950: '#000000',
  },
}
SCSS
$custom: #152d70;
$custom-light: #63659a;
$custom-dark: #000000;
JSON
{
  "hex": "#152d70",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 112
  },
  "hsl": {
    "h": 224.176,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32409,
    "c": 0.11993,
    "h": 265.2
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#152D70
secondary
#A68A3B
accent
#BD3DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152D70

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

Preview Lab → · Contrast checker → · Palette generator →

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