#18317B#18317B

#18317B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.130 H 265.6°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#18317B
RGBrgb(24, 49, 123)
HSLhsl(225, 67%, 29%)
HSVhsv(225, 80%, 48%)
CMYKcmyk(80.5%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.07, 19.56, -44.81)
CIE-LCHlch(23.07, 48.89, 293.58°)
OKLaboklab(34.4% -0.0099 -0.1294)
OKLCHoklch(34.4% 0.13 265.6)
XYZxyz(5.0489, 3.8203, 19.2063)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18317B #7B6218
analogous
#18637B #18317B #30187B
triadic
#18317B #7B1831 #317B18
tetradic
#18317B #7B1863 #7B6218 #187B30
square
#18317B #7B1863 #7B6218 #187B30
split-complementary
#18317B #7B3018 #637B18
monochromatic
#050A1A #0E1D48 #18317B #2245AE #365FD8

Accessibility & contrast

On white

11.90
#18317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#18317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18317B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18317B#FFFFFF#000000##FFFFFF
##18317B1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #18317b;
/* rgb */ color: rgb(24, 49, 123);
/* oklch */ color: oklch(34.4% 0.130 265.6);
Tailwind
colors: {
  custom: {
    50: '#6668a2',
    500: '#18317b',
    950: '#000000',
  },
}
SCSS
$custom: #18317b;
$custom-light: #6668a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18317b",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 224.848,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34403,
    "c": 0.12977,
    "h": 265.6
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#18317B
secondary
#B0933F
accent
#BF3EEA
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18317B

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

Preview Lab → · Contrast checker → · Palette generator →

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