#18317D#18317D

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

Color values

HEX#18317D
RGBrgb(24, 49, 125)
HSLhsl(225, 68%, 29%)
HSVhsv(225, 81%, 49%)
CMYKcmyk(80.8%, 60.8%, 0%, 51%)
CIE-LABlab(23.24, 20.38, -45.79)
CIE-LCHlch(23.24, 50.12, 293.99°)
OKLaboklab(34.59% -0.0098 -0.1323)
OKLCHoklch(34.59% 0.133 265.8)
XYZxyz(5.1754, 3.8709, 19.8725)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18317D #7D6418
analogous
#18647D #18317D #32187D
triadic
#18317D #7D1831 #317D18
tetradic
#18317D #7D1864 #7D6418 #187D32
square
#18317D #7D1864 #7D6418 #187D32
split-complementary
#18317D #7D3218 #647D18
monochromatic
#050A1A #0E1D4A #18317D #2245B0 #375FD9

Accessibility & contrast

On white

11.84
#18317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#18317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18317D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18317D#FFFFFF#000000##FFFFFF
##18317D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #18317d;
/* rgb */ color: rgb(24, 49, 125);
/* oklch */ color: oklch(34.6% 0.133 265.8);
Tailwind
colors: {
  custom: {
    50: '#6768a3',
    500: '#18317d',
    950: '#000000',
  },
}
SCSS
$custom: #18317d;
$custom-light: #6768a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18317d",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 225.149,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34586,
    "c": 0.13265,
    "h": 265.8
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18317D

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

Preview Lab → · Contrast checker → · Palette generator →

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