#18168B#18168B

#18168B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.181 H 270.3°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#18168B
RGBrgb(24, 22, 139)
HSLhsl(241, 73%, 32%)
HSVhsv(241, 84%, 55%)
CMYKcmyk(82.7%, 84.2%, 0%, 45.5%)
CIE-LABlab(18.50, 42.57, -62.40)
CIE-LCHlch(18.50, 75.54, 304.30°)
OKLaboklab(31.61% 0.0009 -0.1806)
OKLCHoklch(31.61% 0.181 270.3)
XYZxyz(5.3222, 2.6315, 24.6485)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18168B #898B16
analogous
#164F8B #18168B #53168B
triadic
#18168B #8B1816 #168B18
tetradic
#18168B #8B164F #898B16 #168B53
square
#18168B #8B164F #898B16 #168B53
split-complementary
#18168B #8B5316 #4F8B16
monochromatic
#060521 #0F0E56 #18168B #211EC0 #3E3BE0

Accessibility & contrast

On white

13.76
#18168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#18168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18168B
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18168B#FFFFFF#000000##FFFFFF
##18168B1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002789
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18168b;
/* rgb */ color: rgb(24, 22, 139);
/* oklch */ color: oklch(31.6% 0.181 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d57ae',
    500: '#18168b',
    950: '#000000',
  },
}
SCSS
$custom: #18168b;
$custom-light: #6d57ae;
$custom-dark: #000000;
JSON
{
  "hex": "#18168b",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 241.026,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31605,
    "c": 0.18064,
    "h": 270.3
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#18168B
secondary
#BDBF3E
accent
#EF38EC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #18168B

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

Preview Lab → · Contrast checker → · Palette generator →

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