#152C74#152C74

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

Color values

HEX#152C74
RGBrgb(21, 44, 116)
HSLhsl(225, 69%, 27%)
HSVhsv(225, 82%, 45%)
CMYKcmyk(81.9%, 62.1%, 0%, 54.5%)
CIE-LABlab(20.91, 19.91, -43.87)
CIE-LCHlch(20.91, 48.18, 294.41°)
OKLaboklab(32.56% -0.0091 -0.1268)
OKLCHoklch(32.56% 0.127 265.9)
XYZxyz(4.3612, 3.2212, 16.9115)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C74 #745D15
analogous
#155C74 #152C74 #2E1574
triadic
#152C74 #74152C #2C7415
tetradic
#152C74 #74155C #745D15 #15742E
square
#152C74 #74155C #745D15 #15742E
split-complementary
#152C74 #742E15 #5C7415
monochromatic
#050A1A #0C1840 #152C74 #1E40A8 #2B55D9

Accessibility & contrast

On white

12.77
#152C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152C74
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C74#FFFFFF#000000##FFFFFF
##152C741.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152c74;
/* rgb */ color: rgb(21, 44, 116);
/* oklch */ color: oklch(32.6% 0.127 265.9);
Tailwind
colors: {
  custom: {
    50: '#64649d',
    500: '#152c74',
    950: '#000000',
  },
}
SCSS
$custom: #152c74;
$custom-light: #64649d;
$custom-dark: #000000;
JSON
{
  "hex": "#152c74",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 225.474,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32563,
    "c": 0.12711,
    "h": 265.9
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#152C74
secondary
#AA8F3B
accent
#C13CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152C74

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

Preview Lab → · Contrast checker → · Palette generator →

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