#18165A#18165A

#18165A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.8% C 0.117 H 275.7°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#18165A
RGBrgb(24, 22, 90)
HSLhsl(242, 61%, 22%)
HSVhsv(242, 76%, 35%)
CMYKcmyk(73.3%, 75.6%, 0%, 64.7%)
CIE-LABlab(12.65, 25.39, -40.33)
CIE-LCHlch(12.65, 47.66, 302.19°)
OKLaboklab(25.77% 0.0115 -0.1165)
OKLCHoklch(25.77% 0.117 275.7)
XYZxyz(2.5085, 1.5060, 9.8294)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18165A #585A16
analogous
#16365A #18165A #3A165A
triadic
#18165A #5A1816 #165A18
tetradic
#18165A #5A1636 #585A16 #165A3A
square
#18165A #5A1636 #585A16 #165A3A
split-complementary
#18165A #5A3A16 #365A16
monochromatic
#070619 #0B0A29 #18165A #25228B #322EBC

Accessibility & contrast

On white

16.14
#18165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18165A
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18165A#FFFFFF#000000##FFFFFF
##18165A1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18165a;
/* rgb */ color: rgb(24, 22, 90);
/* oklch */ color: oklch(25.8% 0.117 275.7);
Tailwind
colors: {
  custom: {
    50: '#605489',
    500: '#18165a',
    950: '#000000',
  },
}
SCSS
$custom: #18165a;
$custom-light: #605489;
$custom-dark: #000000;
JSON
{
  "hex": "#18165a",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 241.765,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25767,
    "c": 0.11709,
    "h": 275.7
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#18165A
secondary
#8F913B
accent
#E444DF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18165A

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

Preview Lab → · Contrast checker → · Palette generator →

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