#18317E#18317E

#18317E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.134 H 265.8°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#18317E
RGBrgb(24, 49, 126)
HSLhsl(225, 68%, 29%)
HSVhsv(225, 81%, 49%)
CMYKcmyk(81%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.33, 20.78, -46.28)
CIE-LCHlch(23.33, 50.73, 294.18°)
OKLaboklab(34.68% -0.0098 -0.1337)
OKLCHoklch(34.68% 0.134 265.8)
XYZxyz(5.2396, 3.8966, 20.2106)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18317E #7E6518
analogous
#18647E #18317E #32187E
triadic
#18317E #7E1831 #317E18
tetradic
#18317E #7E1864 #7E6518 #187E32
square
#18317E #7E1864 #7E6518 #187E32
split-complementary
#18317E #7E3218 #647E18
monochromatic
#050A1A #0E1D4B #18317E #2245B1 #375FD9

Accessibility & contrast

On white

11.80
#18317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#18317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18317E
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18317E#FFFFFF#000000##FFFFFF
##18317E1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #18317e;
/* rgb */ color: rgb(24, 49, 126);
/* oklch */ color: oklch(34.7% 0.134 265.8);
Tailwind
colors: {
  custom: {
    50: '#6768a4',
    500: '#18317e',
    950: '#000000',
  },
}
SCSS
$custom: #18317e;
$custom-light: #6768a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18317e",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 225.294,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34677,
    "c": 0.13409,
    "h": 265.8
  },
  "luminance": 0.03897
}

Semantic roles & 50–950 ramp

primary
#18317E
secondary
#B2963F
accent
#C03DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18317E

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

Preview Lab → · Contrast checker → · Palette generator →

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