#18315E#18315E

#18315E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.0% C 0.086 H 261.1°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#18315E
RGBrgb(24, 49, 94)
HSLhsl(219, 59%, 23%)
HSVhsv(219, 74%, 37%)
CMYKcmyk(74.5%, 47.9%, 0%, 63.1%)
CIE-LABlab(20.82, 7.55, -29.72)
CIE-LCHlch(20.82, 30.66, 284.25°)
OKLaboklab(31.99% -0.0133 -0.085)
OKLCHoklch(31.99% 0.086 261.1)
XYZxyz(3.4947, 3.1986, 11.0207)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18315E #5E4518
analogous
#18545E #18315E #22185E
triadic
#18315E #5E1831 #315E18
tetradic
#18315E #5E1854 #5E4518 #185E22
square
#18315E #5E1854 #5E4518 #185E22
split-complementary
#18315E #5E2218 #545E18
monochromatic
#060D18 #0C182D #18315E #244A8F #3164C0

Accessibility & contrast

On white

12.81
#18315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18315E
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18315E#FFFFFF#000000##FFFFFF
##18315E1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3660
Deuteranopia (green-blind)
#0E2F5D
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18315e;
/* rgb */ color: rgb(24, 49, 94);
/* oklch */ color: oklch(32.0% 0.086 261.1);
Tailwind
colors: {
  custom: {
    50: '#5f688c',
    500: '#18315e',
    950: '#000000',
  },
}
SCSS
$custom: #18315e;
$custom-light: #5f688c;
$custom-dark: #000000;
JSON
{
  "hex": "#18315e",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 218.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31985,
    "c": 0.08605,
    "h": 261.1
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#18315E
secondary
#94753D
accent
#AA45E3
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18315E

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

Preview Lab → · Contrast checker → · Palette generator →

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