#152F7F#152F7F

#152F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.139 H 265.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#152F7F
RGBrgb(21, 47, 127)
HSLhsl(225, 72%, 29%)
HSVhsv(225, 83%, 50%)
CMYKcmyk(83.5%, 63%, 0%, 50.2%)
CIE-LABlab(22.74, 22.29, -47.88)
CIE-LCHlch(22.74, 52.82, 294.97°)
OKLaboklab(34.23% -0.0109 -0.1385)
OKLCHoklch(34.23% 0.139 265.5)
XYZxyz(5.1552, 3.7242, 20.5217)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F7F #7F6515
analogous
#15647F #152F7F #30157F
triadic
#152F7F #7F152F #2F7F15
tetradic
#152F7F #7F1564 #7F6515 #157F30
square
#152F7F #7F1564 #7F6515 #157F30
split-complementary
#152F7F #7F3015 #647F15
monochromatic
#040A1A #0C1C4A #152F7F #1E42B4 #315BDD

Accessibility & contrast

On white

12.03
#152F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#152F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F7F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F7F#FFFFFF#000000##FFFFFF
##152F7F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #152f7f;
/* rgb */ color: rgb(21, 47, 127);
/* oklch */ color: oklch(34.2% 0.139 265.5);
Tailwind
colors: {
  custom: {
    50: '#6767a5',
    500: '#152f7f',
    950: '#000000',
  },
}
SCSS
$custom: #152f7f;
$custom-light: #6767a5;
$custom-dark: #000000;
JSON
{
  "hex": "#152f7f",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 225.283,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34233,
    "c": 0.13893,
    "h": 265.5
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#152F7F
secondary
#B4973C
accent
#C239EE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #152F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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