#18167E#18167E

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

Color values

HEX#18167E
RGBrgb(24, 22, 126)
HSLhsl(241, 70%, 29%)
HSVhsv(241, 83%, 49%)
CMYKcmyk(81%, 82.5%, 0%, 50.6%)
CIE-LABlab(16.86, 38.26, -56.91)
CIE-LCHlch(16.86, 68.58, 303.91°)
OKLaboklab(29.99% 0.0039 -0.1647)
OKLCHoklch(29.99% 0.165 271.3)
XYZxyz(4.4282, 2.2739, 19.9401)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18167E #7C7E16
analogous
#16487E #18167E #4C167E
triadic
#18167E #7E1816 #167E18
tetradic
#18167E #7E1648 #7C7E16 #167E4C
square
#18167E #7E1648 #7C7E16 #167E4C
split-complementary
#18167E #7E4C16 #487E16
monochromatic
#05051A #0E0D4A #18167E #221FB2 #3633DB

Accessibility & contrast

On white

14.43
#18167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18167E
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18167E#FFFFFF#000000##FFFFFF
##18167E1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18167e;
/* rgb */ color: rgb(24, 22, 126);
/* oklch */ color: oklch(30.0% 0.165 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a56a5',
    500: '#18167e',
    950: '#000000',
  },
}
SCSS
$custom: #18167e;
$custom-light: #6a56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18167e",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 241.154,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.29993,
    "c": 0.1648,
    "h": 271.3
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18167E

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

Preview Lab → · Contrast checker → · Palette generator →

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