#18317C#18317C

#18317C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.131 H 265.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#18317C
RGBrgb(24, 49, 124)
HSLhsl(225, 68%, 29%)
HSVhsv(225, 81%, 49%)
CMYKcmyk(80.6%, 60.5%, 0%, 51.4%)
CIE-LABlab(23.15, 19.97, -45.30)
CIE-LCHlch(23.15, 49.50, 293.79°)
OKLaboklab(34.49% -0.0098 -0.1308)
OKLCHoklch(34.49% 0.131 265.7)
XYZxyz(5.1118, 3.8455, 19.5377)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18317C #7C6318
analogous
#18637C #18317C #31187C
triadic
#18317C #7C1831 #317C18
tetradic
#18317C #7C1863 #7C6318 #187C31
square
#18317C #7C1863 #7C6318 #187C31
split-complementary
#18317C #7C3118 #637C18
monochromatic
#050A1A #0E1D49 #18317C #2245AF #365FD8

Accessibility & contrast

On white

11.87
#18317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18317C
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18317C#FFFFFF#000000##FFFFFF
##18317C1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18317c;
/* rgb */ color: rgb(24, 49, 124);
/* oklch */ color: oklch(34.5% 0.131 265.7);
Tailwind
colors: {
  custom: {
    50: '#6668a3',
    500: '#18317c',
    950: '#000000',
  },
}
SCSS
$custom: #18317c;
$custom-light: #6668a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18317c",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 225,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34494,
    "c": 0.13121,
    "h": 265.7
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#18317C
secondary
#B1943F
accent
#BF3DEA
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18317C

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

Preview Lab → · Contrast checker → · Palette generator →

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