#18177D#18177D

#18177D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.163 H 271.3°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#18177D
RGBrgb(24, 23, 125)
HSLhsl(241, 69%, 29%)
HSVhsv(241, 82%, 49%)
CMYKcmyk(80.8%, 81.6%, 0%, 51%)
CIE-LABlab(16.93, 37.38, -56.17)
CIE-LCHlch(16.93, 67.47, 303.64°)
OKLaboklab(30% 0.0038 -0.1626)
OKLCHoklch(30% 0.163 271.3)
XYZxyz(4.3835, 2.2872, 19.6085)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18177D #7C7D17
analogous
#17497D #18177D #4B177D
triadic
#18177D #7D1817 #177D18
tetradic
#18177D #7D1749 #7C7D17 #177D4B
square
#18177D #7D1749 #7C7D17 #177D4B
split-complementary
#18177D #7D4B17 #497D17
monochromatic
#05051A #0E0D49 #18177D #2221B1 #3635DA

Accessibility & contrast

On white

14.41
#18177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18177D
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18177D#FFFFFF#000000##FFFFFF
##18177D1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18177d;
/* rgb */ color: rgb(24, 23, 125);
/* oklch */ color: oklch(30.0% 0.163 271.3);
Tailwind
colors: {
  custom: {
    50: '#6956a4',
    500: '#18177d',
    950: '#000000',
  },
}
SCSS
$custom: #18177d;
$custom-light: #6956a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18177d",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 240.588,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30002,
    "c": 0.16266,
    "h": 271.3
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#18177D
secondary
#B1B23E
accent
#EC3CEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18177D

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

Preview Lab → · Contrast checker → · Palette generator →

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