#18408C#18408C

#18408C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.134 H 261.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#18408C
RGBrgb(24, 64, 140)
HSLhsl(219, 71%, 32%)
HSVhsv(219, 83%, 55%)
CMYKcmyk(82.9%, 54.3%, 0%, 45.1%)
CIE-LABlab(28.78, 15.98, -46.15)
CIE-LCHlch(28.78, 48.84, 289.10°)
OKLaboklab(39.15% -0.0196 -0.1331)
OKLCHoklch(39.15% 0.134 261.6)
XYZxyz(6.9420, 5.7536, 25.5505)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18408C #8C6418
analogous
#187A8C #18408C #2A188C
triadic
#18408C #8C1840 #408C18
tetradic
#18408C #8C187A #8C6418 #188C2A
square
#18408C #8C187A #8C6418 #188C2A
split-complementary
#18408C #8C2A18 #7A8C18
monochromatic
#061024 #0F2858 #18408C #2158C0 #4077DE

Accessibility & contrast

On white

9.76
#18408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#18408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18408C
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18408C#FFFFFF#000000##FFFFFF
##18408C1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05498F
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #18408c;
/* rgb */ color: rgb(24, 64, 140);
/* oklch */ color: oklch(39.2% 0.134 261.6);
Tailwind
colors: {
  custom: {
    50: '#6a74ae',
    500: '#18408c',
    950: '#000000',
  },
}
SCSS
$custom: #18408c;
$custom-light: #6a74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#18408c",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 219.31,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39151,
    "c": 0.13449,
    "h": 261.6
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#18408C
secondary
#BF9341
accent
#B03AED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #18408C

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

Preview Lab → · Contrast checker → · Palette generator →

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