#152A75#152A75

#152A75 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.131 H 266.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#152A75
RGBrgb(21, 42, 117)
HSLhsl(227, 70%, 27%)
HSVhsv(227, 82%, 46%)
CMYKcmyk(82.1%, 64.1%, 0%, 54.1%)
CIE-LABlab(20.44, 21.75, -45.28)
CIE-LCHlch(20.44, 50.24, 295.66°)
OKLaboklab(32.24% -0.0077 -0.1309)
OKLCHoklch(32.24% 0.131 266.6)
XYZxyz(4.3470, 3.0992, 17.1953)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A75 #756015
analogous
#155A75 #152A75 #301575
triadic
#152A75 #75152A #2A7515
tetradic
#152A75 #75155A #756015 #157530
square
#152A75 #75155A #756015 #157530
split-complementary
#152A75 #753015 #5A7515
monochromatic
#05091A #0C1741 #152A75 #1E3DA9 #2B51D9

Accessibility & contrast

On white

12.96
#152A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A75
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A75#FFFFFF#000000##FFFFFF
##152A751.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152a75;
/* rgb */ color: rgb(21, 42, 117);
/* oklch */ color: oklch(32.2% 0.131 266.6);
Tailwind
colors: {
  custom: {
    50: '#64639d',
    500: '#152a75',
    950: '#000000',
  },
}
SCSS
$custom: #152a75;
$custom-light: #64639d;
$custom-dark: #000000;
JSON
{
  "hex": "#152a75",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 226.875,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3224,
    "c": 0.13118,
    "h": 266.6
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#152A75
secondary
#AB923B
accent
#C63BEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A75

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

Preview Lab → · Contrast checker → · Palette generator →

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