#18179D#18179D

#18179D is a dark, highly saturated blue. Relative luminance 0.032; OKLCH L 34.0% C 0.201 H 269.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#18179D
RGBrgb(24, 23, 157)
HSLhsl(240, 74%, 35%)
HSVhsv(240, 85%, 62%)
CMYKcmyk(84.7%, 85.4%, 0%, 38.4%)
CIE-LABlab(20.98, 47.82, -69.43)
CIE-LCHlch(20.98, 84.31, 304.56°)
OKLaboklab(33.98% -0.0033 -0.201)
OKLCHoklch(33.98% 0.201 269.1)
XYZxyz(6.7668, 3.2405, 32.1606)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18179D #9C9D17
analogous
#17599D #18179D #5B179D
triadic
#18179D #9D1817 #179D18
tetradic
#18179D #9D1759 #9C9D17 #179D5B
square
#18179D #9D1759 #9C9D17 #179D5B
split-complementary
#18179D #9D5B17 #599D17
monochromatic
#080732 #100F68 #18179D #201FD2 #4B4AE4

Accessibility & contrast

On white

12.74
#18179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#18179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18179D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18179D#FFFFFF#000000##FFFFFF
##18179D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039A1
Deuteranopia (green-blind)
#002B9B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18179d;
/* rgb */ color: rgb(24, 23, 157);
/* oklch */ color: oklch(34.0% 0.201 269.1);
Tailwind
colors: {
  custom: {
    50: '#7259bb',
    500: '#18179d',
    950: '#000000',
  },
}
SCSS
$custom: #18179d;
$custom-light: #7259bb;
$custom-dark: #000000;
JSON
{
  "hex": "#18179d",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 240.448,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3398,
    "c": 0.20101,
    "h": 269.1
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18179D

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

Preview Lab → · Contrast checker → · Palette generator →

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