#15318A#15318A

#15318A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.152 H 265.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#15318A
RGBrgb(21, 49, 138)
HSLhsl(226, 74%, 31%)
HSVhsv(226, 85%, 54%)
CMYKcmyk(84.8%, 64.5%, 0%, 45.9%)
CIE-LABlab(24.29, 25.35, -52.23)
CIE-LCHlch(24.29, 58.06, 295.88°)
OKLaboklab(35.7% -0.012 -0.1512)
OKLCHoklch(35.7% 0.152 265.5)
XYZxyz(5.9934, 4.1903, 24.5328)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15318A #8A6E15
analogous
#156B8A #15318A #33158A
triadic
#15318A #8A1531 #318A15
tetradic
#15318A #8A156B #8A6E15 #158A33
square
#15318A #8A156B #8A6E15 #158A33
split-complementary
#15318A #8A3315 #6B8A15
monochromatic
#050B20 #0D1E55 #15318A #1D44BF #3961E1

Accessibility & contrast

On white

11.42
#15318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#15318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15318A
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15318A#FFFFFF#000000##FFFFFF
##15318A1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #15318a;
/* rgb */ color: rgb(21, 49, 138);
/* oklch */ color: oklch(35.7% 0.152 265.5);
Tailwind
colors: {
  custom: {
    50: '#6a68ad',
    500: '#15318a',
    950: '#000000',
  },
}
SCSS
$custom: #15318a;
$custom-light: #6a68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#15318a",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 225.641,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.15169,
    "h": 265.5
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#15318A
secondary
#BE9F3D
accent
#C438F0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #15318A

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

Preview Lab → · Contrast checker → · Palette generator →

#15318A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva