#18408E#18408E

#18408E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.137 H 261.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#18408E
RGBrgb(24, 64, 142)
HSLhsl(220, 71%, 33%)
HSVhsv(220, 83%, 56%)
CMYKcmyk(83.1%, 54.9%, 0%, 44.3%)
CIE-LABlab(28.94, 16.80, -47.13)
CIE-LCHlch(28.94, 50.04, 289.61°)
OKLaboklab(39.32% -0.0193 -0.1359)
OKLCHoklch(39.32% 0.137 261.9)
XYZxyz(7.0908, 5.8131, 26.3343)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18408E #8E6618
analogous
#187B8E #18408E #2B188E
triadic
#18408E #8E1840 #408E18
tetradic
#18408E #8E187B #8E6618 #188E2B
square
#18408E #8E187B #8E6618 #188E2B
split-complementary
#18408E #8E2B18 #7B8E18
monochromatic
#061125 #0F285A #18408E #2158C2 #4177DF

Accessibility & contrast

On white

9.71
#18408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18408E
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18408E#FFFFFF#000000##FFFFFF
##18408E1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #18408e;
/* rgb */ color: rgb(24, 64, 142);
/* oklch */ color: oklch(39.3% 0.137 261.9);
Tailwind
colors: {
  custom: {
    50: '#6a74b0',
    500: '#18408e',
    950: '#000000',
  },
}
SCSS
$custom: #18408e;
$custom-light: #6a74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18408e",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 219.661,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39317,
    "c": 0.13732,
    "h": 261.9
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#18408E
secondary
#C09542
accent
#B13AEE
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #18408E

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

Preview Lab → · Contrast checker → · Palette generator →

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