#18104C#18104C

#18104C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.2% C 0.104 H 280.5°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#18104C
RGBrgb(24, 16, 76)
HSLhsl(248, 65%, 18%)
HSVhsv(248, 79%, 30%)
CMYKcmyk(68.4%, 78.9%, 0%, 70.2%)
CIE-LABlab(9.69, 24.15, -35.62)
CIE-LCHlch(9.69, 43.04, 304.13°)
OKLaboklab(23.19% 0.0191 -0.1027)
OKLCHoklch(23.19% 0.104 280.5)
XYZxyz(1.8661, 1.0864, 6.9474)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18104C #444C10
analogous
#10264C #18104C #36104C
triadic
#18104C #4C1810 #104C18
tetradic
#18104C #4C1026 #444C10 #104C36
square
#18104C #4C1026 #444C10 #104C36
split-complementary
#18104C #4C3610 #264C10
monochromatic
#080519 #080519 #18104C #281B7F #3825B1

Accessibility & contrast

On white

17.25
#18104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18104C
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18104C#FFFFFF#000000##FFFFFF
##18104C1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#00194B
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #18104c;
/* rgb */ color: rgb(24, 16, 76);
/* oklch */ color: oklch(23.2% 0.104 280.5);
Tailwind
colors: {
  custom: {
    50: '#5d4f7f',
    500: '#18104c',
    950: '#000000',
  },
}
SCSS
$custom: #18104c;
$custom-light: #5d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#18104c",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 248,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23193,
    "c": 0.10449,
    "h": 280.5
  },
  "luminance": 0.01087
}

Semantic roles & 50–950 ramp

primary
#18104C
secondary
#7B8632
accent
#E840D2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18104C

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

Preview Lab → · Contrast checker → · Palette generator →

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