#18408B#18408B

#18408B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.133 H 261.5°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#18408B
RGBrgb(24, 64, 139)
HSLhsl(219, 71%, 32%)
HSVhsv(219, 83%, 55%)
CMYKcmyk(82.7%, 54%, 0%, 45.5%)
CIE-LABlab(28.71, 15.57, -45.66)
CIE-LCHlch(28.71, 48.24, 288.83°)
OKLaboklab(39.07% -0.0197 -0.1316)
OKLCHoklch(39.07% 0.133 261.5)
XYZxyz(6.8686, 5.7242, 25.1640)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18408B #8B6318
analogous
#187A8B #18408B #29188B
triadic
#18408B #8B1840 #408B18
tetradic
#18408B #8B187A #8B6318 #188B29
square
#18408B #8B187A #8B6318 #188B29
split-complementary
#18408B #8B2918 #7A8B18
monochromatic
#061023 #0F2857 #18408B #2158BF #3F77DE

Accessibility & contrast

On white

9.79
#18408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18408B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18408B#FFFFFF#000000##FFFFFF
##18408B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498E
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #18408b;
/* rgb */ color: rgb(24, 64, 139);
/* oklch */ color: oklch(39.1% 0.133 261.5);
Tailwind
colors: {
  custom: {
    50: '#6974ad',
    500: '#18408b',
    950: '#000000',
  },
}
SCSS
$custom: #18408b;
$custom-light: #6974ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18408b",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 219.13,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39069,
    "c": 0.13307,
    "h": 261.5
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#18408B
secondary
#BE9340
accent
#AF3AED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #18408B

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

Preview Lab → · Contrast checker → · Palette generator →

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