#18166F#18166F

#18166F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.146 H 272.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#18166F
RGBrgb(24, 22, 111)
HSLhsl(241, 67%, 26%)
HSVhsv(241, 80%, 44%)
CMYKcmyk(78.4%, 80.2%, 0%, 56.5%)
CIE-LABlab(15.04, 33.07, -50.28)
CIE-LCHlch(15.04, 60.19, 303.33°)
OKLaboklab(28.18% 0.0073 -0.1455)
OKLCHoklch(28.18% 0.146 272.9)
XYZxyz(3.5319, 1.9153, 15.2194)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18166F #6D6F16
analogous
#16406F #18166F #44166F
triadic
#18166F #6F1816 #166F18
tetradic
#18166F #6F1640 #6D6F16 #166F44
square
#18166F #6F1640 #6D6F16 #166F44
split-complementary
#18166F #6F4416 #406F16
monochromatic
#06051A #0D0C3C #18166F #2320A2 #2E2BD5

Accessibility & contrast

On white

15.18
#18166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#18166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18166F
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18166F#FFFFFF#000000##FFFFFF
##18166F1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18166f;
/* rgb */ color: rgb(24, 22, 111);
/* oklch */ color: oklch(28.2% 0.146 272.9);
Tailwind
colors: {
  custom: {
    50: '#665599',
    500: '#18166f',
    950: '#000000',
  },
}
SCSS
$custom: #18166f;
$custom-light: #665599;
$custom-dark: #000000;
JSON
{
  "hex": "#18166f",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 241.348,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28179,
    "c": 0.14569,
    "h": 272.9
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#18166F
secondary
#A3A53C
accent
#EA3EE6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #18166F

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

Preview Lab → · Contrast checker → · Palette generator →

#18166F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva