#18104F#18104F

#18104F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.109 H 279.7°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#18104F
RGBrgb(24, 16, 79)
HSLhsl(248, 66%, 19%)
HSVhsv(248, 80%, 31%)
CMYKcmyk(69.6%, 79.7%, 0%, 69%)
CIE-LABlab(10.02, 25.24, -37.15)
CIE-LCHlch(10.02, 44.91, 304.19°)
OKLaboklab(23.53% 0.0184 -0.1072)
OKLCHoklch(23.53% 0.109 279.7)
XYZxyz(1.9728, 1.1291, 7.5096)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18104F #474F10
analogous
#10274F #18104F #37104F
triadic
#18104F #4F1810 #104F18
tetradic
#18104F #4F1027 #474F10 #104F37
square
#18104F #4F1027 #474F10 #104F37
split-complementary
#18104F #4F3710 #274F10
monochromatic
#080519 #09061C #18104F #271A82 #3725B5

Accessibility & contrast

On white

17.13
#18104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#18104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18104F
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18104F#FFFFFF#000000##FFFFFF
##18104F1.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#00194E
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18104f;
/* rgb */ color: rgb(24, 16, 79);
/* oklch */ color: oklch(23.5% 0.109 279.7);
Tailwind
colors: {
  custom: {
    50: '#5e4f81',
    500: '#18104f',
    950: '#000000',
  },
}
SCSS
$custom: #18104f;
$custom-light: #5e4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#18104f",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 247.619,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2353,
    "c": 0.10876,
    "h": 279.7
  },
  "luminance": 0.01129
}

Semantic roles & 50–950 ramp

primary
#18104F
secondary
#7E8932
accent
#E93FD4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18104F

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

Preview Lab → · Contrast checker → · Palette generator →

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