#18418C#18418C

#18418C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.133 H 261.2°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#18418C
RGBrgb(24, 65, 140)
HSLhsl(219, 71%, 32%)
HSVhsv(219, 83%, 55%)
CMYKcmyk(82.9%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.08, 15.28, -45.67)
CIE-LCHlch(29.08, 48.16, 288.50°)
OKLaboklab(39.37% -0.0203 -0.1316)
OKLCHoklch(39.37% 0.133 261.2)
XYZxyz(6.9989, 5.8674, 25.5695)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18418C #8C6318
analogous
#187B8C #18418C #29188C
triadic
#18418C #8C1841 #418C18
tetradic
#18418C #8C187B #8C6318 #188C29
square
#18418C #8C187B #8C6318 #188C29
split-complementary
#18418C #8C2918 #7B8C18
monochromatic
#061024 #0F2958 #18418C #2159C0 #4078DE

Accessibility & contrast

On white

9.66
#18418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#18418C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18418C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18418C#FFFFFF#000000##FFFFFF
##18418C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8F
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #18418c;
/* rgb */ color: rgb(24, 65, 140);
/* oklch */ color: oklch(39.4% 0.133 261.2);
Tailwind
colors: {
  custom: {
    50: '#6a75ae',
    500: '#18418c',
    950: '#000000',
  },
}
SCSS
$custom: #18418c;
$custom-light: #6a75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#18418c",
  "rgb": {
    "r": 24,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 218.793,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39374,
    "c": 0.1332,
    "h": 261.2
  },
  "luminance": 0.05868
}

Semantic roles & 50–950 ramp

primary
#18418C
secondary
#BF9241
accent
#AE3AED
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #18418C

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

Preview Lab → · Contrast checker → · Palette generator →

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