#18185D#18185D

#18185D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.4% C 0.119 H 274.6°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#18185D
RGBrgb(24, 24, 93)
HSLhsl(240, 59%, 23%)
HSVhsv(240, 74%, 36%)
CMYKcmyk(74.2%, 74.2%, 0%, 63.5%)
CIE-LABlab(13.46, 25.19, -41.01)
CIE-LCHlch(13.46, 48.13, 301.56°)
OKLaboklab(26.45% 0.0096 -0.1185)
OKLCHoklch(26.45% 0.119 274.6)
XYZxyz(2.6785, 1.6375, 10.5287)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18185D #5D5D18
analogous
#183A5D #18185D #3A185D
triadic
#18185D #5D1818 #185D18
tetradic
#18185D #5D183A #5D5D18 #185D3A
square
#18185D #5D183A #5D5D18 #185D3A
split-complementary
#18185D #5D3A18 #3A5D18
monochromatic
#060618 #0B0B2C #18185D #25258E #3131BE

Accessibility & contrast

On white

15.82
#18185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#18185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18185D
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18185D#FFFFFF#000000##FFFFFF
##18185D1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #18185d;
/* rgb */ color: rgb(24, 24, 93);
/* oklch */ color: oklch(26.4% 0.119 274.6);
Tailwind
colors: {
  custom: {
    50: '#60558c',
    500: '#18185d',
    950: '#000000',
  },
}
SCSS
$custom: #18185d;
$custom-light: #60558c;
$custom-dark: #000000;
JSON
{
  "hex": "#18185d",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 240,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26447,
    "c": 0.1189,
    "h": 274.6
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#18185D
secondary
#93933D
accent
#E246E2
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #18185D

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

Preview Lab → · Contrast checker → · Palette generator →

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