#18317F#18317F

#18317F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.136 H 265.9°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#18317F
RGBrgb(24, 49, 127)
HSLhsl(225, 68%, 30%)
HSVhsv(225, 81%, 50%)
CMYKcmyk(81.1%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.41, 21.19, -46.77)
CIE-LCHlch(23.41, 51.35, 294.37°)
OKLaboklab(34.77% -0.0097 -0.1352)
OKLCHoklch(34.77% 0.136 265.9)
XYZxyz(5.3044, 3.9225, 20.5521)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18317F #7F6618
analogous
#18657F #18317F #33187F
triadic
#18317F #7F1831 #317F18
tetradic
#18317F #7F1865 #7F6618 #187F33
square
#18317F #7F1865 #7F6618 #187F33
split-complementary
#18317F #7F3318 #657F18
monochromatic
#050A1A #0E1D4C #18317F #2245B2 #385FD9

Accessibility & contrast

On white

11.77
#18317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18317F
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18317F#FFFFFF#000000##FFFFFF
##18317F1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18317f;
/* rgb */ color: rgb(24, 49, 127);
/* oklch */ color: oklch(34.8% 0.136 265.9);
Tailwind
colors: {
  custom: {
    50: '#6768a5',
    500: '#18317f',
    950: '#000000',
  },
}
SCSS
$custom: #18317f;
$custom-light: #6768a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18317f",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 225.437,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3477,
    "c": 0.13551,
    "h": 265.9
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#18317F
secondary
#B3973F
accent
#C13DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18317F

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

Preview Lab → · Contrast checker → · Palette generator →

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