#18176C#18176C

#18176C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.141 H 273.0°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#18176C
RGBrgb(24, 23, 108)
HSLhsl(241, 65%, 26%)
HSVhsv(241, 79%, 42%)
CMYKcmyk(77.8%, 78.7%, 0%, 57.6%)
CIE-LABlab(14.90, 31.40, -48.56)
CIE-LCHlch(14.90, 57.83, 302.89°)
OKLaboklab(27.98% 0.0074 -0.1405)
OKLCHoklch(27.98% 0.141 273)
XYZxyz(3.3890, 1.8893, 14.3705)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18176C #6B6C17
analogous
#17406C #18176C #42176C
triadic
#18176C #6C1817 #176C18
tetradic
#18176C #6C1740 #6B6C17 #176C42
square
#18176C #6C1740 #6B6C17 #176C42
split-complementary
#18176C #6C4217 #406C17
monochromatic
#060519 #0D0C3A #18176C #23229E #2E2CD1

Accessibility & contrast

On white

15.24
#18176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#18176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18176C
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18176C#FFFFFF#000000##FFFFFF
##18176C1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18176c;
/* rgb */ color: rgb(24, 23, 108);
/* oklch */ color: oklch(28.0% 0.141 273.0);
Tailwind
colors: {
  custom: {
    50: '#655597',
    500: '#18176c',
    950: '#000000',
  },
}
SCSS
$custom: #18176c;
$custom-light: #655597;
$custom-dark: #000000;
JSON
{
  "hex": "#18176c",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 240.706,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27975,
    "c": 0.14071,
    "h": 273
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#18176C
secondary
#A1A23D
accent
#E840E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #18176C

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

Preview Lab → · Contrast checker → · Palette generator →

#18176C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva