#18168E#18168E

#18168E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.184 H 270.1°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#18168E
RGBrgb(24, 22, 142)
HSLhsl(241, 73%, 32%)
HSVhsv(241, 85%, 56%)
CMYKcmyk(83.1%, 84.5%, 0%, 44.3%)
CIE-LABlab(18.89, 43.54, -63.64)
CIE-LCHlch(18.89, 77.11, 304.38°)
OKLaboklab(31.98% 0.0002 -0.1842)
OKLCHoklch(31.98% 0.184 270.1)
XYZxyz(5.5444, 2.7204, 25.8188)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18168E #8C8E16
analogous
#16508E #18168E #54168E
triadic
#18168E #8E1816 #168E18
tetradic
#18168E #8E1650 #8C8E16 #168E54
square
#18168E #8E1650 #8C8E16 #168E54
split-complementary
#18168E #8E5416 #508E16
monochromatic
#060624 #0F0E59 #18168E #211EC3 #403DE1

Accessibility & contrast

On white

13.60
#18168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18168E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18168E#FFFFFF#000000##FFFFFF
##18168E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18168e;
/* rgb */ color: rgb(24, 22, 142);
/* oklch */ color: oklch(32.0% 0.184 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e57b0',
    500: '#18168e',
    950: '#000000',
  },
}
SCSS
$custom: #18168e;
$custom-light: #6e57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18168e",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 241,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31981,
    "c": 0.18422,
    "h": 270.1
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#18168E
secondary
#BFC13F
accent
#F038ED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18168E

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

Preview Lab → · Contrast checker → · Palette generator →

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