#18317A#18317A

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

Color values

HEX#18317A
RGBrgb(24, 49, 122)
HSLhsl(225, 67%, 29%)
HSVhsv(225, 80%, 48%)
CMYKcmyk(80.3%, 59.8%, 0%, 52.2%)
CIE-LABlab(22.98, 19.15, -44.31)
CIE-LCHlch(22.98, 48.27, 293.37°)
OKLaboklab(34.31% -0.0099 -0.1279)
OKLCHoklch(34.31% 0.128 265.6)
XYZxyz(4.9866, 3.7954, 18.8784)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18317A #7A6118
analogous
#18627A #18317A #30187A
triadic
#18317A #7A1831 #317A18
tetradic
#18317A #7A1862 #7A6118 #187A30
square
#18317A #7A1862 #7A6118 #187A30
split-complementary
#18317A #7A3018 #627A18
monochromatic
#050A1A #0E1C47 #18317A #2246AD #355ED7

Accessibility & contrast

On white

11.94
#18317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18317A
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18317A#FFFFFF#000000##FFFFFF
##18317A1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #18317a;
/* rgb */ color: rgb(24, 49, 122);
/* oklch */ color: oklch(34.3% 0.128 265.6);
Tailwind
colors: {
  custom: {
    50: '#6668a1',
    500: '#18317a',
    950: '#000000',
  },
}
SCSS
$custom: #18317a;
$custom-light: #6668a1;
$custom-dark: #000000;
JSON
{
  "hex": "#18317a",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 224.694,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34313,
    "c": 0.12832,
    "h": 265.6
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#18317A
secondary
#AF923F
accent
#BE3EEA
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18317A

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

Preview Lab → · Contrast checker → · Palette generator →

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