#18177B#18177B

#18177B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.160 H 271.5°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#18177B
RGBrgb(24, 23, 123)
HSLhsl(241, 68%, 29%)
HSVhsv(241, 81%, 48%)
CMYKcmyk(80.5%, 81.3%, 0%, 51.8%)
CIE-LABlab(16.68, 36.69, -55.30)
CIE-LCHlch(16.68, 66.36, 303.56°)
OKLaboklab(29.76% 0.0042 -0.1601)
OKLCHoklch(29.76% 0.16 271.5)
XYZxyz(4.2570, 2.2366, 18.9424)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18177B #7A7B17
analogous
#17487B #18177B #4A177B
triadic
#18177B #7B1817 #177B18
tetradic
#18177B #7B1748 #7A7B17 #177B4A
square
#18177B #7B1748 #7A7B17 #177B4A
split-complementary
#18177B #7B4A17 #487B17
monochromatic
#05051A #0E0D47 #18177B #2221AF #3533D9

Accessibility & contrast

On white

14.51
#18177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#18177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18177B
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18177B#FFFFFF#000000##FFFFFF
##18177B1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18177b;
/* rgb */ color: rgb(24, 23, 123);
/* oklch */ color: oklch(29.8% 0.160 271.5);
Tailwind
colors: {
  custom: {
    50: '#6956a2',
    500: '#18177b',
    950: '#000000',
  },
}
SCSS
$custom: #18177b;
$custom-light: #6956a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18177b",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 240.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.2976,
    "c": 0.16015,
    "h": 271.5
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#18177B
secondary
#AFB03E
accent
#EB3CEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18177B

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

Preview Lab → · Contrast checker → · Palette generator →

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