#18185F#18185F

#18185F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.7% C 0.122 H 274.4°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#18185F
RGBrgb(24, 24, 95)
HSLhsl(240, 60%, 23%)
HSVhsv(240, 75%, 37%)
CMYKcmyk(74.7%, 74.7%, 0%, 62.7%)
CIE-LABlab(13.67, 25.95, -42.00)
CIE-LCHlch(13.67, 49.36, 301.71°)
OKLaboklab(26.67% 0.0093 -0.1214)
OKLCHoklch(26.67% 0.122 274.4)
XYZxyz(2.7682, 1.6734, 11.0014)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18185F #5F5F18
analogous
#183B5F #18185F #3B185F
triadic
#18185F #5F1818 #185F18
tetradic
#18185F #5F183B #5F5F18 #185F3B
square
#18185F #5F183B #5F5F18 #185F3B
split-complementary
#18185F #5F3B18 #3B5F18
monochromatic
#060618 #0C0C2E #18185F #242490 #3131C1

Accessibility & contrast

On white

15.73
#18185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18185F
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18185F#FFFFFF#000000##FFFFFF
##18185F1.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #18185f;
/* rgb */ color: rgb(24, 24, 95);
/* oklch */ color: oklch(26.7% 0.122 274.4);
Tailwind
colors: {
  custom: {
    50: '#61558d',
    500: '#18185f',
    950: '#000000',
  },
}
SCSS
$custom: #18185f;
$custom-light: #61558d;
$custom-dark: #000000;
JSON
{
  "hex": "#18185f",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 240,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.26666,
    "c": 0.12174,
    "h": 274.4
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#18185F
secondary
#95953D
accent
#E345E3
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #18185F

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

Preview Lab → · Contrast checker → · Palette generator →

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