#152A7F#152A7F

#152A7F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.145 H 266.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#152A7F
RGBrgb(21, 42, 127)
HSLhsl(228, 72%, 29%)
HSVhsv(228, 83%, 50%)
CMYKcmyk(83.5%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.38, 25.79, -50.10)
CIE-LCHlch(21.38, 56.35, 297.24°)
OKLaboklab(33.23% -0.0079 -0.1451)
OKLCHoklch(33.23% 0.145 266.9)
XYZxyz(4.9667, 3.3471, 20.4588)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A7F #7F6A15
analogous
#155F7F #152A7F #35157F
triadic
#152A7F #7F152A #2A7F15
tetradic
#152A7F #7F155F #7F6A15 #157F35
square
#152A7F #7F155F #7F6A15 #157F35
split-complementary
#152A7F #7F3515 #5F7F15
monochromatic
#04091A #0C194A #152A7F #1E3BB4 #3153DD

Accessibility & contrast

On white

12.58
#152A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A7F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A7F#FFFFFF#000000##FFFFFF
##152A7F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152a7f;
/* rgb */ color: rgb(21, 42, 127);
/* oklch */ color: oklch(33.2% 0.145 266.9);
Tailwind
colors: {
  custom: {
    50: '#6763a5',
    500: '#152a7f',
    950: '#000000',
  },
}
SCSS
$custom: #152a7f;
$custom-light: #6763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#152a7f",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 228.113,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3323,
    "c": 0.14527,
    "h": 266.9
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#152A7F
secondary
#B49C3C
accent
#CB39EE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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