#18179E#18179E

#18179E is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.1% C 0.202 H 269.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#18179E
RGBrgb(24, 23, 158)
HSLhsl(240, 75%, 35%)
HSVhsv(240, 85%, 62%)
CMYKcmyk(84.8%, 85.4%, 0%, 38%)
CIE-LABlab(21.11, 48.13, -69.83)
CIE-LCHlch(21.11, 84.81, 304.58°)
OKLaboklab(34.11% -0.0035 -0.2021)
OKLCHoklch(34.11% 0.202 269)
XYZxyz(6.8525, 3.2748, 32.6121)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18179E #9D9E17
analogous
#175A9E #18179E #5B179E
triadic
#18179E #9E1817 #179E18
tetradic
#18179E #9E175A #9D9E17 #179E5B
square
#18179E #9E175A #9D9E17 #179E5B
split-complementary
#18179E #9E5B17 #5A9E17
monochromatic
#080733 #100F69 #18179E #201FD3 #4C4BE5

Accessibility & contrast

On white

12.69
#18179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#18179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18179E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18179E#FFFFFF#000000##FFFFFF
##18179E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002B9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18179e;
/* rgb */ color: rgb(24, 23, 158);
/* oklch */ color: oklch(34.1% 0.202 269.0);
Tailwind
colors: {
  custom: {
    50: '#7259bc',
    500: '#18179e',
    950: '#000000',
  },
}
SCSS
$custom: #18179e;
$custom-light: #7259bc;
$custom-dark: #000000;
JSON
{
  "hex": "#18179e",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 240.444,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34106,
    "c": 0.20216,
    "h": 269
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#18179E
secondary
#C5C64A
accent
#F137F0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #18179E

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

Preview Lab → · Contrast checker → · Palette generator →

#18179E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva