#18104E#18104E

#18104E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.107 H 280.0°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#18104E
RGBrgb(24, 16, 78)
HSLhsl(248, 66%, 18%)
HSVhsv(248, 79%, 31%)
CMYKcmyk(69.2%, 79.5%, 0%, 69.4%)
CIE-LABlab(9.91, 24.87, -36.64)
CIE-LCHlch(9.91, 44.29, 304.17°)
OKLaboklab(23.42% 0.0186 -0.1057)
OKLCHoklch(23.42% 0.107 280)
XYZxyz(1.9367, 1.1147, 7.3193)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18104E #464E10
analogous
#10274E #18104E #37104E
triadic
#18104E #4E1810 #104E18
tetradic
#18104E #4E1027 #464E10 #104E37
square
#18104E #4E1027 #464E10 #104E37
split-complementary
#18104E #4E3710 #274E10
monochromatic
#080519 #08061B #18104E #281A81 #3725B4

Accessibility & contrast

On white

17.17
#18104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18104E
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18104E#FFFFFF#000000##FFFFFF
##18104E1.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18104e;
/* rgb */ color: rgb(24, 16, 78);
/* oklch */ color: oklch(23.4% 0.107 280.0);
Tailwind
colors: {
  custom: {
    50: '#5d4f80',
    500: '#18104e',
    950: '#000000',
  },
}
SCSS
$custom: #18104e;
$custom-light: #5d4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#18104e",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 247.742,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23417,
    "c": 0.10734,
    "h": 280
  },
  "luminance": 0.01115
}

Semantic roles & 50–950 ramp

primary
#18104E
secondary
#7D8832
accent
#E93FD3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18104E

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

Preview Lab → · Contrast checker → · Palette generator →

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