#152D7A#152D7A

#152D7A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.134 H 265.9°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#152D7A
RGBrgb(21, 45, 122)
HSLhsl(226, 71%, 28%)
HSVhsv(226, 83%, 48%)
CMYKcmyk(82.8%, 63.1%, 0%, 52.2%)
CIE-LABlab(21.73, 21.67, -46.36)
CIE-LCHlch(21.73, 51.17, 295.05°)
OKLaboklab(33.34% -0.0097 -0.1341)
OKLCHoklch(33.34% 0.134 265.9)
XYZxyz(4.7593, 3.4408, 18.8219)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D7A #7A6215
analogous
#155F7A #152D7A #30157A
triadic
#152D7A #7A152D #2D7A15
tetradic
#152D7A #7A155F #7A6215 #157A30
square
#152D7A #7A155F #7A6215 #157A30
split-complementary
#152D7A #7A3015 #5F7A15
monochromatic
#040A1A #0C1A46 #152D7A #1E40AE #2E57DB

Accessibility & contrast

On white

12.44
#152D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#152D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D7A
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D7A#FFFFFF#000000##FFFFFF
##152D7A1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152d7a;
/* rgb */ color: rgb(21, 45, 122);
/* oklch */ color: oklch(33.3% 0.134 265.9);
Tailwind
colors: {
  custom: {
    50: '#6565a1',
    500: '#152d7a',
    950: '#000000',
  },
}
SCSS
$custom: #152d7a;
$custom-light: #6565a1;
$custom-dark: #000000;
JSON
{
  "hex": "#152d7a",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 225.743,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33342,
    "c": 0.13442,
    "h": 265.9
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#152D7A
secondary
#AF943B
accent
#C33AED
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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