#18167D#18167D

#18167D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.164 H 271.4°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#18167D
RGBrgb(24, 22, 125)
HSLhsl(241, 70%, 29%)
HSVhsv(241, 82%, 49%)
CMYKcmyk(80.8%, 82.4%, 0%, 51%)
CIE-LABlab(16.74, 37.92, -56.48)
CIE-LCHlch(16.74, 68.03, 303.88°)
OKLaboklab(29.87% 0.0041 -0.1635)
OKLCHoklch(29.87% 0.164 271.4)
XYZxyz(4.3640, 2.2482, 19.6020)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18167D #7B7D16
analogous
#16487D #18167D #4C167D
triadic
#18167D #7D1816 #167D18
tetradic
#18167D #7D1648 #7B7D16 #167D4C
square
#18167D #7D1648 #7B7D16 #167D4C
split-complementary
#18167D #7D4C16 #487D16
monochromatic
#05051A #0E0D49 #18167D #221FB1 #3632DB

Accessibility & contrast

On white

14.48
#18167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#18167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18167D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18167D#FFFFFF#000000##FFFFFF
##18167D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18167d;
/* rgb */ color: rgb(24, 22, 125);
/* oklch */ color: oklch(29.9% 0.164 271.4);
Tailwind
colors: {
  custom: {
    50: '#6956a4',
    500: '#18167d',
    950: '#000000',
  },
}
SCSS
$custom: #18167d;
$custom-light: #6956a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18167d",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 241.165,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29871,
    "c": 0.16355,
    "h": 271.4
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#18167D
secondary
#B0B23D
accent
#ED3BE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18167D

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

Preview Lab → · Contrast checker → · Palette generator →

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