#18177E#18177E

#18177E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.164 H 271.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#18177E
RGBrgb(24, 23, 126)
HSLhsl(241, 69%, 29%)
HSVhsv(241, 82%, 49%)
CMYKcmyk(81%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.05, 37.72, -56.61)
CIE-LCHlch(17.05, 68.02, 303.68°)
OKLaboklab(30.12% 0.0036 -0.1639)
OKLCHoklch(30.12% 0.164 271.2)
XYZxyz(4.4477, 2.3128, 19.9466)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18177E #7D7E17
analogous
#17497E #18177E #4C177E
triadic
#18177E #7E1817 #177E18
tetradic
#18177E #7E1749 #7D7E17 #177E4C
square
#18177E #7E1749 #7D7E17 #177E4C
split-complementary
#18177E #7E4C17 #497E17
monochromatic
#05051A #0E0E4A #18177E #2220B2 #3735DA

Accessibility & contrast

On white

14.36
#18177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18177E
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18177E#FFFFFF#000000##FFFFFF
##18177E1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18177e;
/* rgb */ color: rgb(24, 23, 126);
/* oklch */ color: oklch(30.1% 0.164 271.2);
Tailwind
colors: {
  custom: {
    50: '#6a56a5',
    500: '#18177e',
    950: '#000000',
  },
}
SCSS
$custom: #18177e;
$custom-light: #6a56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18177e",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 240.583,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30124,
    "c": 0.16391,
    "h": 271.2
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18177E

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

Preview Lab → · Contrast checker → · Palette generator →

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