#18104B#18104B

#18104B is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.103 H 280.8°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#18104B
RGBrgb(24, 16, 75)
HSLhsl(248, 65%, 18%)
HSVhsv(248, 79%, 29%)
CMYKcmyk(68%, 78.7%, 0%, 70.6%)
CIE-LABlab(9.58, 23.78, -35.11)
CIE-LCHlch(9.58, 42.41, 304.11°)
OKLaboklab(23.08% 0.0193 -0.1012)
OKLCHoklch(23.08% 0.103 280.8)
XYZxyz(1.8316, 1.0726, 6.7658)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18104B #434B10
analogous
#10254B #18104B #35104B
triadic
#18104B #4B1810 #104B18
tetradic
#18104B #4B1025 #434B10 #104B35
square
#18104B #4B1025 #434B10 #104B35
split-complementary
#18104B #4B3510 #254B10
monochromatic
#080519 #080519 #18104B #281B7D #3826B0

Accessibility & contrast

On white

17.29
#18104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18104B
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18104B#FFFFFF#000000##FFFFFF
##18104B1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #18104b;
/* rgb */ color: rgb(24, 16, 75);
/* oklch */ color: oklch(23.1% 0.103 280.8);
Tailwind
colors: {
  custom: {
    50: '#5d4f7e',
    500: '#18104b',
    950: '#000000',
  },
}
SCSS
$custom: #18104b;
$custom-light: #5d4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#18104b",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 248.136,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23082,
    "c": 0.10305,
    "h": 280.8
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#18104B
secondary
#7A8532
accent
#E840D1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18104B

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

Preview Lab → · Contrast checker → · Palette generator →

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