#18167A#18167A

#18167A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.160 H 271.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#18167A
RGBrgb(24, 22, 122)
HSLhsl(241, 69%, 28%)
HSVhsv(241, 82%, 48%)
CMYKcmyk(80.3%, 82%, 0%, 52.2%)
CIE-LABlab(16.37, 36.90, -55.18)
CIE-LCHlch(16.37, 66.38, 303.77°)
OKLaboklab(29.5% 0.0048 -0.1597)
OKLCHoklch(29.5% 0.16 271.7)
XYZxyz(4.1753, 2.1727, 18.6079)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18167A #787A16
analogous
#16467A #18167A #4A167A
triadic
#18167A #7A1816 #167A18
tetradic
#18167A #7A1646 #787A16 #167A4A
square
#18167A #7A1646 #787A16 #167A4A
split-complementary
#18167A #7A4A16 #467A16
monochromatic
#05051A #0E0D46 #18167A #221FAE #3431DA

Accessibility & contrast

On white

14.64
#18167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18167A
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18167A#FFFFFF#000000##FFFFFF
##18167A1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18167a;
/* rgb */ color: rgb(24, 22, 122);
/* oklch */ color: oklch(29.5% 0.160 271.7);
Tailwind
colors: {
  custom: {
    50: '#6956a2',
    500: '#18167a',
    950: '#000000',
  },
}
SCSS
$custom: #18167a;
$custom-light: #6956a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18167a",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 241.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29504,
    "c": 0.1598,
    "h": 271.7
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#18167A
secondary
#ADAF3D
accent
#EC3CE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18167A

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

Preview Lab → · Contrast checker → · Palette generator →

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