#18165D#18165D

#18165D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.1% C 0.121 H 275.2°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#18165D
RGBrgb(24, 22, 93)
HSLhsl(242, 62%, 23%)
HSVhsv(242, 76%, 36%)
CMYKcmyk(74.2%, 76.3%, 0%, 63.5%)
CIE-LABlab(12.97, 26.52, -41.81)
CIE-LCHlch(12.97, 49.51, 302.38°)
OKLaboklab(26.1% 0.011 -0.1208)
OKLCHoklch(26.1% 0.121 275.2)
XYZxyz(2.6387, 1.5581, 10.5155)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18165D #5B5D16
analogous
#16385D #18165D #3B165D
triadic
#18165D #5D1816 #165D18
tetradic
#18165D #5D1638 #5B5D16 #165D3B
square
#18165D #5D1638 #5B5D16 #165D3B
split-complementary
#18165D #5D3B16 #385D16
monochromatic
#060619 #0B0A2C #18165D #25228E #322DC0

Accessibility & contrast

On white

16.01
#18165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#18165D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18165D
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18165D#FFFFFF#000000##FFFFFF
##18165D1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18165d;
/* rgb */ color: rgb(24, 22, 93);
/* oklch */ color: oklch(26.1% 0.121 275.2);
Tailwind
colors: {
  custom: {
    50: '#61548c',
    500: '#18165d',
    950: '#000000',
  },
}
SCSS
$custom: #18165d;
$custom-light: #61548c;
$custom-dark: #000000;
JSON
{
  "hex": "#18165d",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 241.69,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.261,
    "c": 0.12133,
    "h": 275.2
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#18165D
secondary
#92943B
accent
#E543E0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18165D

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

Preview Lab → · Contrast checker → · Palette generator →

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