#15237F#15237F

#15237F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.154 H 268.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#15237F
RGBrgb(21, 35, 127)
HSLhsl(232, 72%, 29%)
HSVhsv(232, 83%, 50%)
CMYKcmyk(83.5%, 72.4%, 0%, 50.2%)
CIE-LABlab(19.61, 30.54, -53.01)
CIE-LCHlch(19.61, 61.18, 299.95°)
OKLaboklab(31.94% -0.0044 -0.1536)
OKLCHoklch(31.94% 0.154 268.4)
XYZxyz(4.7397, 2.8932, 20.3832)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15237F #7F7115
analogous
#15587F #15237F #3C157F
triadic
#15237F #7F1523 #237F15
tetradic
#15237F #7F1558 #7F7115 #157F3C
square
#15237F #7F1558 #7F7115 #157F3C
split-complementary
#15237F #7F3C15 #587F15
monochromatic
#04071A #0C154A #15237F #1E31B4 #3148DD

Accessibility & contrast

On white

13.30
#15237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#15237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15237F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15237F#FFFFFF#000000##FFFFFF
##15237F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #15237f;
/* rgb */ color: rgb(21, 35, 127);
/* oklch */ color: oklch(31.9% 0.154 268.4);
Tailwind
colors: {
  custom: {
    50: '#685ea5',
    500: '#15237f',
    950: '#000000',
  },
}
SCSS
$custom: #15237f;
$custom-light: #685ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#15237f",
  "rgb": {
    "r": 21,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 232.075,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31938,
    "c": 0.15365,
    "h": 268.4
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#15237F
secondary
#B4A43C
accent
#D639EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15237F

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

Preview Lab → · Contrast checker → · Palette generator →

#15237F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva