#18185B#18185B

#18185B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.116 H 274.9°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#18185B
RGBrgb(24, 24, 91)
HSLhsl(240, 58%, 23%)
HSVhsv(240, 74%, 36%)
CMYKcmyk(73.6%, 73.6%, 0%, 64.3%)
CIE-LABlab(13.25, 24.42, -40.02)
CIE-LCHlch(13.25, 46.88, 301.39°)
OKLaboklab(26.23% 0.0099 -0.1156)
OKLCHoklch(26.23% 0.116 274.9)
XYZxyz(2.5910, 1.6026, 10.0683)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18185B #5B5B18
analogous
#18395B #18185B #39185B
triadic
#18185B #5B1818 #185B18
tetradic
#18185B #5B1839 #5B5B18 #185B39
square
#18185B #5B1839 #5B5B18 #185B39
split-complementary
#18185B #5B3918 #395B18
monochromatic
#060618 #0B0B2B #18185B #25258B #3232BC

Accessibility & contrast

On white

15.90
#18185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#18185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18185B
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18185B#FFFFFF#000000##FFFFFF
##18185B1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #18185b;
/* rgb */ color: rgb(24, 24, 91);
/* oklch */ color: oklch(26.2% 0.116 274.9);
Tailwind
colors: {
  custom: {
    50: '#60558a',
    500: '#18185b',
    950: '#000000',
  },
}
SCSS
$custom: #18185b;
$custom-light: #60558a;
$custom-dark: #000000;
JSON
{
  "hex": "#18185b",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 240,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26231,
    "c": 0.11602,
    "h": 274.9
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#18185B
secondary
#92923D
accent
#E146E1
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #18185B

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

Preview Lab → · Contrast checker → · Palette generator →

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