#152B75#152B75

#152B75 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.4% C 0.130 H 266.3°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#152B75
RGBrgb(21, 43, 117)
HSLhsl(226, 70%, 27%)
HSVhsv(226, 82%, 46%)
CMYKcmyk(82.1%, 63.2%, 0%, 54.1%)
CIE-LABlab(20.72, 21.04, -44.83)
CIE-LCHlch(20.72, 49.52, 295.14°)
OKLaboklab(32.45% -0.0084 -0.1296)
OKLCHoklch(32.45% 0.13 266.3)
XYZxyz(4.3829, 3.1710, 17.2072)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B75 #755F15
analogous
#155B75 #152B75 #2F1575
triadic
#152B75 #75152B #2B7515
tetradic
#152B75 #75155B #755F15 #15752F
square
#152B75 #75155B #755F15 #15752F
split-complementary
#152B75 #752F15 #5B7515
monochromatic
#050A1A #0C1841 #152B75 #1E3EA9 #2B53D9

Accessibility & contrast

On white

12.85
#152B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B75
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B75#FFFFFF#000000##FFFFFF
##152B751.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152b75;
/* rgb */ color: rgb(21, 43, 117);
/* oklch */ color: oklch(32.4% 0.130 266.3);
Tailwind
colors: {
  custom: {
    50: '#64649d',
    500: '#152b75',
    950: '#000000',
  },
}
SCSS
$custom: #152b75;
$custom-light: #64649d;
$custom-dark: #000000;
JSON
{
  "hex": "#152b75",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 117
  },
  "hsl": {
    "h": 226.25,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32447,
    "c": 0.12987,
    "h": 266.3
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#152B75
secondary
#AB913B
accent
#C43BEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152B75

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

Preview Lab → · Contrast checker → · Palette generator →

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