#18104A#18104A

#18104A is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.102 H 281.1°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#18104A
RGBrgb(24, 16, 74)
HSLhsl(248, 64%, 18%)
HSVhsv(248, 78%, 29%)
CMYKcmyk(67.6%, 78.4%, 0%, 71%)
CIE-LABlab(9.47, 23.41, -34.59)
CIE-LCHlch(9.47, 41.77, 304.09°)
OKLaboklab(22.97% 0.0195 -0.0997)
OKLCHoklch(22.97% 0.102 281.1)
XYZxyz(1.7976, 1.0591, 6.5869)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18104A #424A10
analogous
#10254A #18104A #35104A
triadic
#18104A #4A1810 #104A18
tetradic
#18104A #4A1025 #424A10 #104A35
square
#18104A #4A1025 #424A10 #104A35
split-complementary
#18104A #4A3510 #254A10
monochromatic
#080519 #080519 #18104A #281B7C #3926AF

Accessibility & contrast

On white

17.33
#18104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#18104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18104A
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18104A#FFFFFF#000000##FFFFFF
##18104A1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001849
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #18104a;
/* rgb */ color: rgb(24, 16, 74);
/* oklch */ color: oklch(23.0% 0.102 281.1);
Tailwind
colors: {
  custom: {
    50: '#5c4f7d',
    500: '#18104a',
    950: '#000000',
  },
}
SCSS
$custom: #18104a;
$custom-light: #5c4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#18104a",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 248.276,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22972,
    "c": 0.10161,
    "h": 281.1
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#18104A
secondary
#798432
accent
#E740D0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18104A

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

Preview Lab → · Contrast checker → · Palette generator →

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