#18418A#18418A

#18418A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.130 H 260.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#18418A
RGBrgb(24, 65, 138)
HSLhsl(218, 70%, 32%)
HSVhsv(218, 83%, 54%)
CMYKcmyk(82.6%, 52.9%, 0%, 45.9%)
CIE-LABlab(28.93, 14.46, -44.68)
CIE-LCHlch(28.93, 46.97, 287.93°)
OKLaboklab(39.21% -0.0206 -0.1287)
OKLCHoklch(39.21% 0.13 260.9)
XYZxyz(6.8528, 5.8089, 24.7999)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18418A #8A6118
analogous
#187A8A #18418A #28188A
triadic
#18418A #8A1841 #418A18
tetradic
#18418A #8A187A #8A6118 #188A28
square
#18418A #8A187A #8A6118 #188A28
split-complementary
#18418A #8A2818 #7A8A18
monochromatic
#061022 #0F2856 #18418A #215ABE #3F78DE

Accessibility & contrast

On white

9.71
#18418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#18418A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18418A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18418A#FFFFFF#000000##FFFFFF
##18418A1.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)
#0F4A8D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #18418a;
/* rgb */ color: rgb(24, 65, 138);
/* oklch */ color: oklch(39.2% 0.130 260.9);
Tailwind
colors: {
  custom: {
    50: '#6975ad',
    500: '#18418a',
    950: '#000000',
  },
}
SCSS
$custom: #18418a;
$custom-light: #6975ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18418a",
  "rgb": {
    "r": 24,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 218.421,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39212,
    "c": 0.13035,
    "h": 260.9
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#18418A
secondary
#BD9040
accent
#AD3BED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #18418A

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

Preview Lab → · Contrast checker → · Palette generator →

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