#18177A#18177A

#18177A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.159 H 271.6°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#18177A
RGBrgb(24, 23, 122)
HSLhsl(241, 68%, 28%)
HSVhsv(241, 81%, 48%)
CMYKcmyk(80.3%, 81.1%, 0%, 52.2%)
CIE-LABlab(16.56, 36.35, -54.86)
CIE-LCHlch(16.56, 65.81, 303.53°)
OKLaboklab(29.64% 0.0044 -0.1588)
OKLCHoklch(29.64% 0.159 271.6)
XYZxyz(4.1948, 2.2117, 18.6144)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18177A #797A17
analogous
#17477A #18177A #49177A
triadic
#18177A #7A1817 #177A18
tetradic
#18177A #7A1747 #797A17 #177A49
square
#18177A #7A1747 #797A17 #177A49
split-complementary
#18177A #7A4917 #477A17
monochromatic
#05051A #0E0D47 #18177A #2221AD #3533D9

Accessibility & contrast

On white

14.56
#18177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#18177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18177A
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18177A#FFFFFF#000000##FFFFFF
##18177A1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18177a;
/* rgb */ color: rgb(24, 23, 122);
/* oklch */ color: oklch(29.6% 0.159 271.6);
Tailwind
colors: {
  custom: {
    50: '#6856a2',
    500: '#18177a',
    950: '#000000',
  },
}
SCSS
$custom: #18177a;
$custom-light: #6856a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18177a",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 240.606,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29639,
    "c": 0.15888,
    "h": 271.6
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#18177A
secondary
#AEAF3E
accent
#EB3DE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18177A

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

Preview Lab → · Contrast checker → · Palette generator →

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