#15318E#15318E

#15318E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.157 H 265.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#15318E
RGBrgb(21, 49, 142)
HSLhsl(226, 74%, 32%)
HSVhsv(226, 85%, 56%)
CMYKcmyk(85.2%, 65.5%, 0%, 44.3%)
CIE-LABlab(24.67, 26.94, -54.10)
CIE-LCHlch(24.67, 60.44, 296.47°)
OKLaboklab(36.09% -0.012 -0.1567)
OKLCHoklch(36.09% 0.157 265.6)
XYZxyz(6.2883, 4.3083, 26.0861)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15318E #8E7215
analogous
#156E8E #15318E #36158E
triadic
#15318E #8E1531 #318E15
tetradic
#15318E #8E156E #8E7215 #158E36
square
#15318E #8E156E #8E7215 #158E36
split-complementary
#15318E #8E3615 #6E8E15
monochromatic
#050C23 #0D1F59 #15318E #1D43C3 #3B62E2

Accessibility & contrast

On white

11.28
#15318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#15318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15318E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15318E#FFFFFF#000000##FFFFFF
##15318E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #15318e;
/* rgb */ color: rgb(21, 49, 142);
/* oklch */ color: oklch(36.1% 0.157 265.6);
Tailwind
colors: {
  custom: {
    50: '#6b68b0',
    500: '#15318e',
    950: '#000000',
  },
}
SCSS
$custom: #15318e;
$custom-light: #6b68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#15318e",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 226.116,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36089,
    "c": 0.15715,
    "h": 265.6
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#15318E
secondary
#C2A33D
accent
#C637F1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #15318E

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

Preview Lab → · Contrast checker → · Palette generator →

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