#18167B#18167B

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

Color values

HEX#18167B
RGBrgb(24, 22, 123)
HSLhsl(241, 70%, 28%)
HSVhsv(241, 82%, 48%)
CMYKcmyk(80.5%, 82.1%, 0%, 51.8%)
CIE-LABlab(16.49, 37.24, -55.62)
CIE-LCHlch(16.49, 66.93, 303.81°)
OKLaboklab(29.63% 0.0046 -0.161)
OKLCHoklch(29.63% 0.161 271.6)
XYZxyz(4.2375, 2.1976, 18.9359)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18167B #797B16
analogous
#16467B #18167B #4A167B
triadic
#18167B #7B1816 #167B18
tetradic
#18167B #7B1646 #797B16 #167B4A
square
#18167B #7B1646 #797B16 #167B4A
split-complementary
#18167B #7B4A16 #467B16
monochromatic
#05051A #0E0D47 #18167B #221FAF #3531DA

Accessibility & contrast

On white

14.59
#18167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#18167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18167B
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18167B#FFFFFF#000000##FFFFFF
##18167B1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18167b;
/* rgb */ color: rgb(24, 22, 123);
/* oklch */ color: oklch(29.6% 0.161 271.6);
Tailwind
colors: {
  custom: {
    50: '#6956a2',
    500: '#18167b',
    950: '#000000',
  },
}
SCSS
$custom: #18167b;
$custom-light: #6956a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18167b",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 241.188,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29626,
    "c": 0.16105,
    "h": 271.6
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#18167B
secondary
#AEB03D
accent
#EC3BE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18167B

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

Preview Lab → · Contrast checker → · Palette generator →

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