#18165C#18165C

#18165C is a dark, moderate blue. Relative luminance 0.015; OKLCH L 26.0% C 0.120 H 275.3°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#18165C
RGBrgb(24, 22, 92)
HSLhsl(242, 61%, 22%)
HSVhsv(242, 76%, 36%)
CMYKcmyk(73.9%, 76.1%, 0%, 63.9%)
CIE-LABlab(12.86, 26.14, -41.32)
CIE-LCHlch(12.86, 48.89, 302.32°)
OKLaboklab(25.99% 0.0112 -0.1194)
OKLCHoklch(25.99% 0.12 275.3)
XYZxyz(2.5947, 1.5405, 10.2837)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18165C #5A5C16
analogous
#16375C #18165C #3B165C
triadic
#18165C #5C1816 #165C18
tetradic
#18165C #5C1637 #5A5C16 #165C3B
square
#18165C #5C1637 #5A5C16 #165C3B
split-complementary
#18165C #5C3B16 #375C16
monochromatic
#060619 #0B0A2B #18165C #25228D #322EBF

Accessibility & contrast

On white

16.05
#18165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18165C
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18165C#FFFFFF#000000##FFFFFF
##18165C1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18165c;
/* rgb */ color: rgb(24, 22, 92);
/* oklch */ color: oklch(26.0% 0.120 275.3);
Tailwind
colors: {
  custom: {
    50: '#60548b',
    500: '#18165c',
    950: '#000000',
  },
}
SCSS
$custom: #18165c;
$custom-light: #60548b;
$custom-dark: #000000;
JSON
{
  "hex": "#18165c",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 241.714,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.25988,
    "c": 0.11992,
    "h": 275.3
  },
  "luminance": 0.01541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18165C

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

Preview Lab → · Contrast checker → · Palette generator →

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