#18408F#18408F

#18408F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.139 H 262.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#18408F
RGBrgb(24, 64, 143)
HSLhsl(220, 71%, 33%)
HSVhsv(220, 83%, 56%)
CMYKcmyk(83.2%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.01, 17.20, -47.62)
CIE-LCHlch(29.01, 50.64, 289.86°)
OKLaboklab(39.4% -0.0192 -0.1374)
OKLCHoklch(39.4% 0.139 262)
XYZxyz(7.1662, 5.8433, 26.7314)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18408F #8F6718
analogous
#187B8F #18408F #2C188F
triadic
#18408F #8F1840 #408F18
tetradic
#18408F #8F187B #8F6718 #188F2C
square
#18408F #8F187B #8F6718 #188F2C
split-complementary
#18408F #8F2C18 #7B8F18
monochromatic
#061126 #0F295B #18408F #2157C3 #4277DF

Accessibility & contrast

On white

9.68
#18408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#18408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18408F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18408F#FFFFFF#000000##FFFFFF
##18408F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #18408f;
/* rgb */ color: rgb(24, 64, 143);
/* oklch */ color: oklch(39.4% 0.139 262.0);
Tailwind
colors: {
  custom: {
    50: '#6a74b0',
    500: '#18408f',
    950: '#000000',
  },
}
SCSS
$custom: #18408f;
$custom-light: #6a74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18408f",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 219.832,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.394,
    "c": 0.13873,
    "h": 262
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#18408F
secondary
#C09643
accent
#B13AEE
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080811
muted
#7A7B80

Preview Lab

Preview with #18408F

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

Preview Lab → · Contrast checker → · Palette generator →

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