#18418B#18418B

#18418B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.132 H 261.1°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#18418B
RGBrgb(24, 65, 139)
HSLhsl(219, 71%, 32%)
HSVhsv(219, 83%, 55%)
CMYKcmyk(82.7%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.00, 14.87, -45.18)
CIE-LCHlch(29.00, 47.56, 288.22°)
OKLaboklab(39.29% -0.0204 -0.1302)
OKLCHoklch(39.29% 0.132 261.1)
XYZxyz(6.9255, 5.8380, 25.1829)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18418B #8B6218
analogous
#187B8B #18418B #29188B
triadic
#18418B #8B1841 #418B18
tetradic
#18418B #8B187B #8B6218 #188B29
square
#18418B #8B187B #8B6218 #188B29
split-complementary
#18418B #8B2918 #7B8B18
monochromatic
#061023 #0F2957 #18418B #2159BF #3F78DE

Accessibility & contrast

On white

9.69
#18418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18418B
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18418B#FFFFFF#000000##FFFFFF
##18418B1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8E
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #18418b;
/* rgb */ color: rgb(24, 65, 139);
/* oklch */ color: oklch(39.3% 0.132 261.1);
Tailwind
colors: {
  custom: {
    50: '#6975ad',
    500: '#18418b',
    950: '#000000',
  },
}
SCSS
$custom: #18418b;
$custom-light: #6975ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18418b",
  "rgb": {
    "r": 24,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 218.609,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39293,
    "c": 0.13177,
    "h": 261.1
  },
  "luminance": 0.05839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18418B

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

Preview Lab → · Contrast checker → · Palette generator →

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