#152F7A#152F7A

#152F7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.132 H 265.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#152F7A
RGBrgb(21, 47, 122)
HSLhsl(225, 71%, 28%)
HSVhsv(225, 83%, 48%)
CMYKcmyk(82.8%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.29, 20.24, -45.44)
CIE-LCHlch(22.29, 49.75, 294.01°)
OKLaboklab(33.76% -0.011 -0.1313)
OKLCHoklch(33.76% 0.132 265.2)
XYZxyz(4.8374, 3.5970, 18.8479)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F7A #7A6015
analogous
#15617A #152F7A #2D157A
triadic
#152F7A #7A152F #2F7A15
tetradic
#152F7A #7A1561 #7A6015 #157A2D
square
#152F7A #7A1561 #7A6015 #157A2D
split-complementary
#152F7A #7A2D15 #617A15
monochromatic
#040A1A #0C1B46 #152F7A #1E43AE #2E5BDB

Accessibility & contrast

On white

12.21
#152F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#152F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F7A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F7A#FFFFFF#000000##FFFFFF
##152F7A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152f7a;
/* rgb */ color: rgb(21, 47, 122);
/* oklch */ color: oklch(33.8% 0.132 265.2);
Tailwind
colors: {
  custom: {
    50: '#6567a1',
    500: '#152f7a',
    950: '#000000',
  },
}
SCSS
$custom: #152f7a;
$custom-light: #6567a1;
$custom-dark: #000000;
JSON
{
  "hex": "#152f7a",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 224.554,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33761,
    "c": 0.13181,
    "h": 265.2
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#152F7A
secondary
#AF923B
accent
#BF3AED
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #152F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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