#152F7C#152F7C

#152F7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.135 H 265.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#152F7C
RGBrgb(21, 47, 124)
HSLhsl(225, 71%, 28%)
HSVhsv(225, 83%, 49%)
CMYKcmyk(83.1%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.47, 21.07, -46.42)
CIE-LCHlch(22.47, 50.98, 294.41°)
OKLaboklab(33.95% -0.0109 -0.1342)
OKLCHoklch(33.95% 0.135 265.3)
XYZxyz(4.9626, 3.6471, 19.5073)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F7C #7C6215
analogous
#15627C #152F7C #2E157C
triadic
#152F7C #7C152F #2F7C15
tetradic
#152F7C #7C1562 #7C6215 #157C2E
square
#152F7C #7C1562 #7C6215 #157C2E
split-complementary
#152F7C #7C2E15 #627C15
monochromatic
#040A1A #0C1B48 #152F7C #1E43B0 #305BDC

Accessibility & contrast

On white

12.14
#152F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#152F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F7C
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F7C#FFFFFF#000000##FFFFFF
##152F7C1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #152f7c;
/* rgb */ color: rgb(21, 47, 124);
/* oklch */ color: oklch(33.9% 0.135 265.3);
Tailwind
colors: {
  custom: {
    50: '#6667a3',
    500: '#152f7c',
    950: '#000000',
  },
}
SCSS
$custom: #152f7c;
$custom-light: #6667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152f7c",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 224.854,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33949,
    "c": 0.13466,
    "h": 265.3
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#152F7C
secondary
#B1943C
accent
#C03AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #152F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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