#18167F#18167F

#18167F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.166 H 271.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#18167F
RGBrgb(24, 22, 127)
HSLhsl(241, 70%, 29%)
HSVhsv(241, 83%, 50%)
CMYKcmyk(81.1%, 82.7%, 0%, 50.2%)
CIE-LABlab(16.99, 38.60, -57.34)
CIE-LCHlch(16.99, 69.13, 303.95°)
OKLaboklab(30.12% 0.0036 -0.166)
OKLCHoklch(30.12% 0.166 271.3)
XYZxyz(4.4931, 2.2998, 20.2817)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18167F #7D7F16
analogous
#16497F #18167F #4D167F
triadic
#18167F #7F1816 #167F18
tetradic
#18167F #7F1649 #7D7F16 #167F4D
square
#18167F #7F1649 #7D7F16 #167F4D
split-complementary
#18167F #7F4D16 #497F16
monochromatic
#05051A #0E0D4B #18167F #221FB3 #3734DC

Accessibility & contrast

On white

14.38
#18167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18167F
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18167F#FFFFFF#000000##FFFFFF
##18167F1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18167f;
/* rgb */ color: rgb(24, 22, 127);
/* oklch */ color: oklch(30.1% 0.166 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a56a5',
    500: '#18167f',
    950: '#000000',
  },
}
SCSS
$custom: #18167f;
$custom-light: #6a56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18167f",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 241.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30116,
    "c": 0.16604,
    "h": 271.3
  },
  "luminance": 0.023
}

Semantic roles & 50–950 ramp

primary
#18167F
secondary
#B2B43D
accent
#ED3BEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18167F

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

Preview Lab → · Contrast checker → · Palette generator →

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