#18167C#18167C

#18167C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.162 H 271.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#18167C
RGBrgb(24, 22, 124)
HSLhsl(241, 70%, 29%)
HSVhsv(241, 82%, 49%)
CMYKcmyk(80.6%, 82.3%, 0%, 51.4%)
CIE-LABlab(16.62, 37.58, -56.05)
CIE-LCHlch(16.62, 67.48, 303.84°)
OKLaboklab(29.75% 0.0043 -0.1622)
OKLCHoklch(29.75% 0.162 271.5)
XYZxyz(4.3005, 2.2228, 19.2673)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18167C #7A7C16
analogous
#16477C #18167C #4B167C
triadic
#18167C #7C1816 #167C18
tetradic
#18167C #7C1647 #7A7C16 #167C4B
square
#18167C #7C1647 #7A7C16 #167C4B
split-complementary
#18167C #7C4B16 #477C16
monochromatic
#05051A #0E0D48 #18167C #221FB0 #3532DB

Accessibility & contrast

On white

14.54
#18167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18167C
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18167C#FFFFFF#000000##FFFFFF
##18167C1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18167c;
/* rgb */ color: rgb(24, 22, 124);
/* oklch */ color: oklch(29.7% 0.162 271.5);
Tailwind
colors: {
  custom: {
    50: '#6956a3',
    500: '#18167c',
    950: '#000000',
  },
}
SCSS
$custom: #18167c;
$custom-light: #6956a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18167c",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 241.176,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29748,
    "c": 0.16231,
    "h": 271.5
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18167C

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

Preview Lab → · Contrast checker → · Palette generator →

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