#18408A#18408A

#18408A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.0% C 0.132 H 261.3°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#18408A
RGBrgb(24, 64, 138)
HSLhsl(219, 70%, 32%)
HSVhsv(219, 83%, 54%)
CMYKcmyk(82.6%, 53.6%, 0%, 45.9%)
CIE-LABlab(28.63, 15.16, -45.16)
CIE-LCHlch(28.63, 47.64, 288.55°)
OKLaboklab(38.99% -0.0198 -0.1301)
OKLCHoklch(38.99% 0.132 261.3)
XYZxyz(6.7959, 5.6951, 24.7809)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18408A #8A6218
analogous
#18798A #18408A #29188A
triadic
#18408A #8A1840 #408A18
tetradic
#18408A #8A1879 #8A6218 #188A29
square
#18408A #8A1879 #8A6218 #188A29
split-complementary
#18408A #8A2918 #798A18
monochromatic
#061022 #0F2856 #18408A #2158BE #3F77DE

Accessibility & contrast

On white

9.82
#18408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#18408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18408A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18408A#FFFFFF#000000##FFFFFF
##18408A1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #18408a;
/* rgb */ color: rgb(24, 64, 138);
/* oklch */ color: oklch(39.0% 0.132 261.3);
Tailwind
colors: {
  custom: {
    50: '#6974ad',
    500: '#18408a',
    950: '#000000',
  },
}
SCSS
$custom: #18408a;
$custom-light: #6974ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18408a",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 218.947,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38987,
    "c": 0.13165,
    "h": 261.3
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#18408A
secondary
#BD9240
accent
#AF3BED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #18408A

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

Preview Lab → · Contrast checker → · Palette generator →

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