#18177F#18177F

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

Color values

HEX#18177F
RGBrgb(24, 23, 127)
HSLhsl(241, 69%, 29%)
HSVhsv(241, 82%, 50%)
CMYKcmyk(81.1%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.17, 38.06, -57.04)
CIE-LCHlch(17.17, 68.57, 303.72°)
OKLaboklab(30.25% 0.0033 -0.1651)
OKLCHoklch(30.25% 0.165 271.2)
XYZxyz(4.5126, 2.3388, 20.2882)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18177F #7E7F17
analogous
#174A7F #18177F #4C177F
triadic
#18177F #7F1817 #177F18
tetradic
#18177F #7F174A #7E7F17 #177F4C
square
#18177F #7F174A #7E7F17 #177F4C
split-complementary
#18177F #7F4C17 #4A7F17
monochromatic
#05051A #0E0E4B #18177F #2220B3 #3736DB

Accessibility & contrast

On white

14.31
#18177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#18177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18177F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18177F#FFFFFF#000000##FFFFFF
##18177F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18177f;
/* rgb */ color: rgb(24, 23, 127);
/* oklch */ color: oklch(30.2% 0.165 271.2);
Tailwind
colors: {
  custom: {
    50: '#6a56a5',
    500: '#18177f',
    950: '#000000',
  },
}
SCSS
$custom: #18177f;
$custom-light: #6a56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18177f",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 240.577,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30246,
    "c": 0.16516,
    "h": 271.2
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18177F

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

Preview Lab → · Contrast checker → · Palette generator →

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