#18315C#18315C

#18315C is a dark, moderate blue. Relative luminance 0.032; OKLCH L 31.8% C 0.083 H 260.5°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#18315C
RGBrgb(24, 49, 92)
HSLhsl(218, 59%, 23%)
HSVhsv(218, 74%, 36%)
CMYKcmyk(73.9%, 46.7%, 0%, 63.9%)
CIE-LABlab(20.69, 6.72, -28.62)
CIE-LCHlch(20.69, 29.40, 283.21°)
OKLaboklab(31.84% -0.0137 -0.0818)
OKLCHoklch(31.84% 0.083 260.5)
XYZxyz(3.4061, 3.1632, 10.5542)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18315C #5C4318
analogous
#18535C #18315C #21185C
triadic
#18315C #5C1831 #315C18
tetradic
#18315C #5C1853 #5C4318 #185C21
square
#18315C #5C1853 #5C4318 #185C21
split-complementary
#18315C #5C2118 #535C18
monochromatic
#060D18 #0B172B #18315C #254B8D #3165BD

Accessibility & contrast

On white

12.86
#18315C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18315C
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18315C#FFFFFF#000000##FFFFFF
##18315C1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C355E
Deuteranopia (green-blind)
#102F5B
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18315c;
/* rgb */ color: rgb(24, 49, 92);
/* oklch */ color: oklch(31.8% 0.083 260.5);
Tailwind
colors: {
  custom: {
    50: '#5e688a',
    500: '#18315c',
    950: '#000000',
  },
}
SCSS
$custom: #18315c;
$custom-light: #5e688a;
$custom-dark: #000000;
JSON
{
  "hex": "#18315c",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 217.941,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31836,
    "c": 0.08293,
    "h": 260.5
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#18315C
secondary
#93733D
accent
#A946E2
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18315C

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

Preview Lab → · Contrast checker → · Palette generator →

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