#18178F#18178F

#18178F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.185 H 269.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#18178F
RGBrgb(24, 23, 143)
HSLhsl(241, 72%, 33%)
HSVhsv(241, 84%, 56%)
CMYKcmyk(83.2%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.18, 43.37, -63.78)
CIE-LCHlch(19.18, 77.13, 304.22°)
OKLaboklab(32.22% -0.0002 -0.1846)
OKLCHoklch(32.22% 0.185 269.9)
XYZxyz(5.6393, 2.7895, 26.2225)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18178F #8E8F17
analogous
#17528F #18178F #54178F
triadic
#18178F #8F1817 #178F18
tetradic
#18178F #8F1752 #8E8F17 #178F54
square
#18178F #8F1752 #8E8F17 #178F54
split-complementary
#18178F #8F5417 #528F17
monochromatic
#060626 #0F0F5A #18178F #211FC4 #4140E0

Accessibility & contrast

On white

13.48
#18178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#18178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18178F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18178F#FFFFFF#000000##FFFFFF
##18178F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18178f;
/* rgb */ color: rgb(24, 23, 143);
/* oklch */ color: oklch(32.2% 0.185 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e58b1',
    500: '#18178f',
    950: '#000000',
  },
}
SCSS
$custom: #18178f;
$custom-light: #6e58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18178f",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 240.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32221,
    "c": 0.18464,
    "h": 269.9
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#18178F
secondary
#C0C141
accent
#EF39ED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18178F

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

Preview Lab → · Contrast checker → · Palette generator →

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