#18108D#18108D

#18108D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.187 H 270.4°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#18108D
RGBrgb(24, 16, 141)
HSLhsl(244, 80%, 31%)
HSVhsv(244, 89%, 55%)
CMYKcmyk(83%, 88.7%, 0%, 44.7%)
CIE-LABlab(17.86, 45.89, -64.72)
CIE-LCHlch(17.86, 79.34, 305.33°)
OKLaboklab(31.24% 0.0015 -0.1872)
OKLCHoklch(31.24% 0.187 270.4)
XYZxyz(5.3681, 2.4872, 25.3913)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18108D #858D10
analogous
#10468D #18108D #56108D
triadic
#18108D #8D1810 #108D18
tetradic
#18108D #8D1046 #858D10 #108D56
square
#18108D #8D1046 #858D10 #108D56
split-complementary
#18108D #8D5610 #468D10
monochromatic
#05041F #0F0A56 #18108D #2116C4 #3C30E7

Accessibility & contrast

On white

14.02
#18108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#18108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18108D
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18108D#FFFFFF#000000##FFFFFF
##18108D1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003290
Deuteranopia (green-blind)
#00258B
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18108d;
/* rgb */ color: rgb(24, 16, 141);
/* oklch */ color: oklch(31.2% 0.187 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e54b0',
    500: '#18108d',
    950: '#000000',
  },
}
SCSS
$custom: #18108d;
$custom-light: #6e54b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18108d",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 243.84,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31238,
    "c": 0.18723,
    "h": 270.4
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#18108D
secondary
#B9C237
accent
#F632E9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18108D

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

Preview Lab → · Contrast checker → · Palette generator →

#18108D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva