#15318F#15318F

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

Color values

HEX#15318F
RGBrgb(21, 49, 143)
HSLhsl(226, 74%, 32%)
HSVhsv(226, 85%, 56%)
CMYKcmyk(85.3%, 65.7%, 0%, 43.9%)
CIE-LABlab(24.76, 27.34, -54.57)
CIE-LCHlch(24.76, 61.03, 296.61°)
OKLaboklab(36.19% -0.012 -0.158)
OKLCHoklch(36.19% 0.159 265.6)
XYZxyz(6.3638, 4.3384, 26.4833)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15318F #8F7315
analogous
#156E8F #15318F #36158F
triadic
#15318F #8F1531 #318F15
tetradic
#15318F #8F156E #8F7315 #158F36
square
#15318F #8F156E #8F7315 #158F36
split-complementary
#15318F #8F3615 #6E8F15
monochromatic
#050C24 #0D1F5A #15318F #1D43C4 #3C62E2

Accessibility & contrast

On white

11.24
#15318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#15318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15318F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15318F#FFFFFF#000000##FFFFFF
##15318F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15318f;
/* rgb */ color: rgb(21, 49, 143);
/* oklch */ color: oklch(36.2% 0.159 265.6);
Tailwind
colors: {
  custom: {
    50: '#6b68b1',
    500: '#15318f',
    950: '#000000',
  },
}
SCSS
$custom: #15318f;
$custom-light: #6b68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#15318f",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 226.23,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36187,
    "c": 0.15851,
    "h": 265.6
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#15318F
secondary
#C2A43E
accent
#C637F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #15318F

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

Preview Lab → · Contrast checker → · Palette generator →

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