#18165B#18165B

#18165B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.9% C 0.118 H 275.5°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#18165B
RGBrgb(24, 22, 91)
HSLhsl(242, 61%, 22%)
HSVhsv(242, 76%, 36%)
CMYKcmyk(73.6%, 75.8%, 0%, 64.3%)
CIE-LABlab(12.75, 25.77, -40.82)
CIE-LCHlch(12.75, 48.28, 302.26°)
OKLaboklab(25.88% 0.0114 -0.118)
OKLCHoklch(25.88% 0.119 275.5)
XYZxyz(2.5513, 1.5231, 10.0550)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18165B #595B16
analogous
#16375B #18165B #3B165B
triadic
#18165B #5B1816 #165B18
tetradic
#18165B #5B1637 #595B16 #165B3B
square
#18165B #5B1637 #595B16 #165B3B
split-complementary
#18165B #5B3B16 #375B16
monochromatic
#060619 #0B0A2A #18165B #25228C #322EBE

Accessibility & contrast

On white

16.10
#18165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#18165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18165B
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18165B#FFFFFF#000000##FFFFFF
##18165B1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18165b;
/* rgb */ color: rgb(24, 22, 91);
/* oklch */ color: oklch(25.9% 0.118 275.5);
Tailwind
colors: {
  custom: {
    50: '#60548a',
    500: '#18165b',
    950: '#000000',
  },
}
SCSS
$custom: #18165b;
$custom-light: #60548a;
$custom-dark: #000000;
JSON
{
  "hex": "#18165b",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 241.739,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25877,
    "c": 0.1185,
    "h": 275.5
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#18165B
secondary
#90923B
accent
#E444E0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18165B

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

Preview Lab → · Contrast checker → · Palette generator →

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