#152C75#152C75

#152C75 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.129 H 265.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#152C75
RGBrgb(21, 44, 117)
HSLhsl(226, 70%, 27%)
HSVhsv(226, 82%, 46%)
CMYKcmyk(82.1%, 62.4%, 0%, 54.1%)
CIE-LABlab(21.00, 20.33, -44.37)
CIE-LCHlch(21.00, 48.80, 294.61°)
OKLaboklab(32.66% -0.0091 -0.1282)
OKLCHoklch(32.66% 0.129 265.9)
XYZxyz(4.4197, 3.2446, 17.2195)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C75 #755E15
analogous
#155C75 #152C75 #2E1575
triadic
#152C75 #75152C #2C7515
tetradic
#152C75 #75155C #755E15 #15752E
square
#152C75 #75155C #755E15 #15752E
split-complementary
#152C75 #752E15 #5C7515
monochromatic
#050A1A #0C1841 #152C75 #1E40A9 #2B55D9

Accessibility & contrast

On white

12.73
#152C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C75
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C75#FFFFFF#000000##FFFFFF
##152C751.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152c75;
/* rgb */ color: rgb(21, 44, 117);
/* oklch */ color: oklch(32.7% 0.129 265.9);
Tailwind
colors: {
  custom: {
    50: '#64649d',
    500: '#152c75',
    950: '#000000',
  },
}
SCSS
$custom: #152c75;
$custom-light: #64649d;
$custom-dark: #000000;
JSON
{
  "hex": "#152c75",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 117
  },
  "hsl": {
    "h": 225.625,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32657,
    "c": 0.12856,
    "h": 265.9
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#152C75
secondary
#AB903B
accent
#C23BEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152C75

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

Preview Lab → · Contrast checker → · Palette generator →

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