#18165F#18165F

#18165F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.3% C 0.124 H 274.9°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#18165F
RGBrgb(24, 22, 95)
HSLhsl(242, 62%, 23%)
HSVhsv(242, 77%, 37%)
CMYKcmyk(74.7%, 76.8%, 0%, 62.7%)
CIE-LABlab(13.19, 27.26, -42.78)
CIE-LCHlch(13.19, 50.73, 302.51°)
OKLaboklab(26.32% 0.0106 -0.1237)
OKLCHoklch(26.32% 0.124 274.9)
XYZxyz(2.7285, 1.5940, 10.9881)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18165F #5D5F16
analogous
#16385F #18165F #3C165F
triadic
#18165F #5F1816 #165F18
tetradic
#18165F #5F1638 #5D5F16 #165F3C
square
#18165F #5F1638 #5D5F16 #165F3C
split-complementary
#18165F #5F3C16 #385F16
monochromatic
#060619 #0B0A2D #18165F #252291 #312DC2

Accessibility & contrast

On white

15.92
#18165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#18165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18165F
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18165F#FFFFFF#000000##FFFFFF
##18165F1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #18165f;
/* rgb */ color: rgb(24, 22, 95);
/* oklch */ color: oklch(26.3% 0.124 274.9);
Tailwind
colors: {
  custom: {
    50: '#61548d',
    500: '#18165f',
    950: '#000000',
  },
}
SCSS
$custom: #18165f;
$custom-light: #61548d;
$custom-dark: #000000;
JSON
{
  "hex": "#18165f",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 241.644,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26324,
    "c": 0.12412,
    "h": 274.9
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#18165F
secondary
#93963B
accent
#E542E1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18165F

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

Preview Lab → · Contrast checker → · Palette generator →

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