#18315B#18315B

#18315B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.081 H 260.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#18315B
RGBrgb(24, 49, 91)
HSLhsl(218, 58%, 23%)
HSVhsv(218, 74%, 36%)
CMYKcmyk(73.6%, 46.2%, 0%, 64.3%)
CIE-LABlab(20.62, 6.30, -28.07)
CIE-LCHlch(20.62, 28.77, 282.66°)
OKLaboklab(31.76% -0.0139 -0.0802)
OKLCHoklch(31.76% 0.081 260.1)
XYZxyz(3.3627, 3.1458, 10.3255)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18315B #5B4218
analogous
#18525B #18315B #20185B
triadic
#18315B #5B1831 #315B18
tetradic
#18315B #5B1852 #5B4218 #185B20
square
#18315B #5B1852 #5B4218 #185B20
split-complementary
#18315B #5B2018 #525B18
monochromatic
#060D18 #0B172B #18315B #254B8B #3265BC

Accessibility & contrast

On white

12.89
#18315B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#18315B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18315B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18315B#FFFFFF#000000##FFFFFF
##18315B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D355D
Deuteranopia (green-blind)
#122F5A
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18315b;
/* rgb */ color: rgb(24, 49, 91);
/* oklch */ color: oklch(31.8% 0.081 260.1);
Tailwind
colors: {
  custom: {
    50: '#5e688a',
    500: '#18315b',
    950: '#000000',
  },
}
SCSS
$custom: #18315b;
$custom-light: #5e688a;
$custom-dark: #000000;
JSON
{
  "hex": "#18315b",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 217.612,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31762,
    "c": 0.08137,
    "h": 260.1
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#18315B
secondary
#92723D
accent
#A846E1
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #18315B

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

Preview Lab → · Contrast checker → · Palette generator →

#18315B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva