#152E7C#152E7C

#152E7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.136 H 265.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#152E7C
RGBrgb(21, 46, 124)
HSLhsl(225, 71%, 28%)
HSVhsv(225, 83%, 49%)
CMYKcmyk(83.1%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.19, 21.77, -46.88)
CIE-LCHlch(22.19, 51.69, 294.91°)
OKLaboklab(33.74% -0.0103 -0.1356)
OKLCHoklch(33.74% 0.136 265.7)
XYZxyz(4.9231, 3.5681, 19.4941)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E7C #7C6315
analogous
#15617C #152E7C #2F157C
triadic
#152E7C #7C152E #2E7C15
tetradic
#152E7C #7C1561 #7C6315 #157C2F
square
#152E7C #7C1561 #7C6315 #157C2F
split-complementary
#152E7C #7C2F15 #617C15
monochromatic
#040A1A #0C1B48 #152E7C #1E41B0 #3059DC

Accessibility & contrast

On white

12.25
#152E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#152E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E7C
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E7C#FFFFFF#000000##FFFFFF
##152E7C1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152e7c;
/* rgb */ color: rgb(21, 46, 124);
/* oklch */ color: oklch(33.7% 0.136 265.7);
Tailwind
colors: {
  custom: {
    50: '#6666a3',
    500: '#152e7c',
    950: '#000000',
  },
}
SCSS
$custom: #152e7c;
$custom-light: #6666a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152e7c",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 225.437,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3374,
    "c": 0.13597,
    "h": 265.7
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#152E7C
secondary
#B1953C
accent
#C23AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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