#18178A#18178A

#18178A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.179 H 270.3°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#18178A
RGBrgb(24, 23, 138)
HSLhsl(241, 71%, 32%)
HSVhsv(241, 83%, 54%)
CMYKcmyk(82.6%, 83.3%, 0%, 45.9%)
CIE-LABlab(18.55, 41.74, -61.70)
CIE-LCHlch(18.55, 74.50, 304.08°)
OKLaboklab(31.6% 0.0009 -0.1786)
OKLCHoklch(31.6% 0.179 270.3)
XYZxyz(5.2690, 2.6414, 24.2720)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18178A #898A17
analogous
#17508A #18178A #52178A
triadic
#18178A #8A1817 #178A18
tetradic
#18178A #8A1750 #898A17 #178A52
square
#18178A #8A1750 #898A17 #178A52
split-complementary
#18178A #8A5217 #508A17
monochromatic
#060621 #0F0E56 #18178A #2120BE #3E3DDF

Accessibility & contrast

On white

13.74
#18178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#18178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18178A
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18178A#FFFFFF#000000##FFFFFF
##18178A1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18178a;
/* rgb */ color: rgb(24, 23, 138);
/* oklch */ color: oklch(31.6% 0.179 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d57ad',
    500: '#18178a',
    950: '#000000',
  },
}
SCSS
$custom: #18178a;
$custom-light: #6d57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18178a",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 240.522,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31599,
    "c": 0.17864,
    "h": 270.3
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#18178A
secondary
#BDBE3F
accent
#EE3AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #18178A

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

Preview Lab → · Contrast checker → · Palette generator →

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