#18176A#18176A

#18176A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.138 H 273.3°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#18176A
RGBrgb(24, 23, 106)
HSLhsl(241, 64%, 25%)
HSVhsv(241, 78%, 42%)
CMYKcmyk(77.4%, 78.3%, 0%, 58.4%)
CIE-LABlab(14.66, 30.67, -47.63)
CIE-LCHlch(14.66, 56.65, 302.78°)
OKLaboklab(27.74% 0.0079 -0.1378)
OKLCHoklch(27.74% 0.138 273.3)
XYZxyz(3.2837, 1.8473, 13.8164)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18176A #696A17
analogous
#173F6A #18176A #41176A
triadic
#18176A #6A1817 #176A18
tetradic
#18176A #6A173F #696A17 #176A41
square
#18176A #6A173F #696A17 #176A41
split-complementary
#18176A #6A4117 #3F6A17
monochromatic
#060519 #0D0C38 #18176A #23229C #2F2DCF

Accessibility & contrast

On white

15.33
#18176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#18176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18176A
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18176A#FFFFFF#000000##FFFFFF
##18176A1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18176a;
/* rgb */ color: rgb(24, 23, 106);
/* oklch */ color: oklch(27.7% 0.138 273.3);
Tailwind
colors: {
  custom: {
    50: '#645596',
    500: '#18176a',
    950: '#000000',
  },
}
SCSS
$custom: #18176a;
$custom-light: #645596;
$custom-dark: #000000;
JSON
{
  "hex": "#18176a",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 240.723,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27743,
    "c": 0.13804,
    "h": 273.3
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#18176A
secondary
#9FA03D
accent
#E740E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #18176A

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

Preview Lab → · Contrast checker → · Palette generator →

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