#152D7B#152D7B

#152D7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.136 H 265.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#152D7B
RGBrgb(21, 45, 123)
HSLhsl(226, 71%, 28%)
HSVhsv(226, 83%, 48%)
CMYKcmyk(82.9%, 63.4%, 0%, 51.8%)
CIE-LABlab(21.82, 22.07, -46.85)
CIE-LCHlch(21.82, 51.79, 295.23°)
OKLaboklab(33.44% -0.0096 -0.1355)
OKLCHoklch(33.44% 0.136 265.9)
XYZxyz(4.8215, 3.4657, 19.1499)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D7B #7B6315
analogous
#15607B #152D7B #30157B
triadic
#152D7B #7B152D #2D7B15
tetradic
#152D7B #7B1560 #7B6315 #157B30
square
#152D7B #7B1560 #7B6315 #157B30
split-complementary
#152D7B #7B3015 #607B15
monochromatic
#040A1A #0C1A47 #152D7B #1E40AF #2F58DB

Accessibility & contrast

On white

12.40
#152D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152D7B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D7B#FFFFFF#000000##FFFFFF
##152D7B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152d7b;
/* rgb */ color: rgb(21, 45, 123);
/* oklch */ color: oklch(33.4% 0.136 265.9);
Tailwind
colors: {
  custom: {
    50: '#6665a2',
    500: '#152d7b',
    950: '#000000',
  },
}
SCSS
$custom: #152d7b;
$custom-light: #6665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#152d7b",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 225.882,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33437,
    "c": 0.13584,
    "h": 265.9
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#152D7B
secondary
#B0953B
accent
#C33AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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