#18185C#18185C

#18185C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.3% C 0.117 H 274.8°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#18185C
RGBrgb(24, 24, 92)
HSLhsl(240, 59%, 23%)
HSVhsv(240, 74%, 36%)
CMYKcmyk(73.9%, 73.9%, 0%, 63.9%)
CIE-LABlab(13.35, 24.81, -40.52)
CIE-LCHlch(13.35, 47.51, 301.48°)
OKLaboklab(26.34% 0.0097 -0.1171)
OKLCHoklch(26.34% 0.117 274.8)
XYZxyz(2.6345, 1.6199, 10.2970)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18185C #5C5C18
analogous
#183A5C #18185C #3A185C
triadic
#18185C #5C1818 #185C18
tetradic
#18185C #5C183A #5C5C18 #185C3A
square
#18185C #5C183A #5C5C18 #185C3A
split-complementary
#18185C #5C3A18 #3A5C18
monochromatic
#060618 #0B0B2B #18185C #25258D #3131BD

Accessibility & contrast

On white

15.86
#18185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18185C
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18185C#FFFFFF#000000##FFFFFF
##18185C1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #18185c;
/* rgb */ color: rgb(24, 24, 92);
/* oklch */ color: oklch(26.3% 0.117 274.8);
Tailwind
colors: {
  custom: {
    50: '#60558b',
    500: '#18185c',
    950: '#000000',
  },
}
SCSS
$custom: #18185c;
$custom-light: #60558b;
$custom-dark: #000000;
JSON
{
  "hex": "#18185c",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 240,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26339,
    "c": 0.11746,
    "h": 274.8
  },
  "luminance": 0.0162
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18185C

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

Preview Lab → · Contrast checker → · Palette generator →

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