#18418F#18418F

#18418F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.137 H 261.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#18418F
RGBrgb(24, 65, 143)
HSLhsl(219, 71%, 33%)
HSVhsv(219, 83%, 56%)
CMYKcmyk(83.2%, 54.5%, 0%, 43.9%)
CIE-LABlab(29.30, 16.51, -47.15)
CIE-LCHlch(29.30, 49.96, 289.30°)
OKLaboklab(39.62% -0.02 -0.136)
OKLCHoklch(39.62% 0.137 261.6)
XYZxyz(7.2231, 5.9571, 26.7504)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18418F #8F6618
analogous
#187C8F #18418F #2B188F
triadic
#18418F #8F1841 #418F18
tetradic
#18418F #8F187C #8F6618 #188F2B
square
#18418F #8F187C #8F6618 #188F2B
split-complementary
#18418F #8F2B18 #7C8F18
monochromatic
#061126 #0F295B #18418F #2159C3 #4278DF

Accessibility & contrast

On white

9.58
#18418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#18418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18418F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18418F#FFFFFF#000000##FFFFFF
##18418F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024B92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #18418f;
/* rgb */ color: rgb(24, 65, 143);
/* oklch */ color: oklch(39.6% 0.137 261.6);
Tailwind
colors: {
  custom: {
    50: '#6a75b0',
    500: '#18418f',
    950: '#000000',
  },
}
SCSS
$custom: #18418f;
$custom-light: #6a75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18418f",
  "rgb": {
    "r": 24,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 219.328,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39621,
    "c": 0.13745,
    "h": 261.6
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#18418F
secondary
#C09543
accent
#B03AEE
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080811
muted
#7A7B80

Preview Lab

Preview with #18418F

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

Preview Lab → · Contrast checker → · Palette generator →

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