#18408D#18408D

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

Color values

HEX#18408D
RGBrgb(24, 64, 141)
HSLhsl(219, 71%, 32%)
HSVhsv(219, 83%, 55%)
CMYKcmyk(83%, 54.6%, 0%, 44.7%)
CIE-LABlab(28.86, 16.39, -46.64)
CIE-LCHlch(28.86, 49.44, 289.36°)
OKLaboklab(39.23% -0.0194 -0.1345)
OKLCHoklch(39.23% 0.136 261.8)
XYZxyz(7.0161, 5.7832, 25.9406)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18408D #8D6518
analogous
#187B8D #18408D #2A188D
triadic
#18408D #8D1840 #408D18
tetradic
#18408D #8D187B #8D6518 #188D2A
square
#18408D #8D187B #8D6518 #188D2A
split-complementary
#18408D #8D2A18 #7B8D18
monochromatic
#061124 #0F2859 #18408D #2158C1 #4177DF

Accessibility & contrast

On white

9.74
#18408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#18408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18408D
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18408D#FFFFFF#000000##FFFFFF
##18408D1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #18408d;
/* rgb */ color: rgb(24, 64, 141);
/* oklch */ color: oklch(39.2% 0.136 261.8);
Tailwind
colors: {
  custom: {
    50: '#6a74af',
    500: '#18408d',
    950: '#000000',
  },
}
SCSS
$custom: #18408d;
$custom-light: #6a74af;
$custom-dark: #000000;
JSON
{
  "hex": "#18408d",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 219.487,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39234,
    "c": 0.13591,
    "h": 261.8
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#18408D
secondary
#BF9442
accent
#B03AEE
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #18408D

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

Preview Lab → · Contrast checker → · Palette generator →

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