#15315F#15315F

#15315F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 31.9% C 0.089 H 259.8°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#15315F
RGBrgb(21, 49, 95)
HSLhsl(217, 64%, 23%)
HSVhsv(217, 78%, 37%)
CMYKcmyk(77.9%, 48.4%, 0%, 62.7%)
CIE-LABlab(20.76, 7.47, -30.49)
CIE-LCHlch(20.76, 31.39, 283.76°)
OKLaboklab(31.92% -0.0157 -0.0873)
OKLCHoklch(31.92% 0.089 259.8)
XYZxyz(3.4724, 3.1819, 11.2554)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15315F #5F4315
analogous
#15565F #15315F #1E155F
triadic
#15315F #5F1531 #315F15
tetradic
#15315F #5F1556 #5F4315 #155F1E
square
#15315F #5F1556 #5F4315 #155F1E
split-complementary
#15315F #5F1E15 #565F15
monochromatic
#060D19 #0A172D #15315F #204B91 #2B65C3

Accessibility & contrast

On white

12.83
#15315F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#15315F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15315F
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15315F#FFFFFF#000000##FFFFFF
##15315F1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3661
Deuteranopia (green-blind)
#0A2F5E
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #15315f;
/* rgb */ color: rgb(21, 49, 95);
/* oklch */ color: oklch(31.9% 0.089 259.8);
Tailwind
colors: {
  custom: {
    50: '#5e688d',
    500: '#15315f',
    950: '#000000',
  },
}
SCSS
$custom: #15315f;
$custom-light: #5e688d;
$custom-dark: #000000;
JSON
{
  "hex": "#15315f",
  "rgb": {
    "r": 21,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 217.297,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31921,
    "c": 0.08872,
    "h": 259.8
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#15315F
secondary
#96733A
accent
#A841E7
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #15315F

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

Preview Lab → · Contrast checker → · Palette generator →

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