#18104D#18104D

#18104D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.106 H 280.2°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#18104D
RGBrgb(24, 16, 77)
HSLhsl(248, 66%, 18%)
HSVhsv(248, 79%, 30%)
CMYKcmyk(68.8%, 79.2%, 0%, 69.8%)
CIE-LABlab(9.80, 24.51, -36.13)
CIE-LCHlch(9.80, 43.66, 304.15°)
OKLaboklab(23.31% 0.0188 -0.1042)
OKLCHoklch(23.31% 0.106 280.2)
XYZxyz(1.9011, 1.1005, 7.1320)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18104D #454D10
analogous
#10264D #18104D #36104D
triadic
#18104D #4D1810 #104D18
tetradic
#18104D #4D1026 #454D10 #104D36
square
#18104D #4D1026 #454D10 #104D36
split-complementary
#18104D #4D3610 #264D10
monochromatic
#080519 #08051A #18104D #281B80 #3825B2

Accessibility & contrast

On white

17.21
#18104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#18104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18104D
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18104D#FFFFFF#000000##FFFFFF
##18104D1.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#00194C
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #18104d;
/* rgb */ color: rgb(24, 16, 77);
/* oklch */ color: oklch(23.3% 0.106 280.2);
Tailwind
colors: {
  custom: {
    50: '#5d4f80',
    500: '#18104d',
    950: '#000000',
  },
}
SCSS
$custom: #18104d;
$custom-light: #5d4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#18104d",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 247.869,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23305,
    "c": 0.10592,
    "h": 280.2
  },
  "luminance": 0.01101
}

Semantic roles & 50–950 ramp

primary
#18104D
secondary
#7C8732
accent
#E93FD2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18104D

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

Preview Lab → · Contrast checker → · Palette generator →

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