#18108E#18108E

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

Color values

HEX#18108E
RGBrgb(24, 16, 142)
HSLhsl(244, 80%, 31%)
HSVhsv(244, 89%, 56%)
CMYKcmyk(83.1%, 88.7%, 0%, 44.3%)
CIE-LABlab(18.00, 46.19, -65.12)
CIE-LCHlch(18.00, 79.84, 305.35°)
OKLaboklab(31.37% 0.0012 -0.1884)
OKLCHoklch(31.37% 0.188 270.4)
XYZxyz(5.4428, 2.5171, 25.7849)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18108E #868E10
analogous
#10478E #18108E #57108E
triadic
#18108E #8E1810 #108E18
tetradic
#18108E #8E1047 #868E10 #108E57
square
#18108E #8E1047 #868E10 #108E57
split-complementary
#18108E #8E5710 #478E10
monochromatic
#050420 #0F0A57 #18108E #2116C5 #3C31E8

Accessibility & contrast

On white

13.97
#18108E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18108E
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18108E#FFFFFF#000000##FFFFFF
##18108E1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003291
Deuteranopia (green-blind)
#00258C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18108e;
/* rgb */ color: rgb(24, 16, 142);
/* oklch */ color: oklch(31.4% 0.188 270.4);
Tailwind
colors: {
  custom: {
    50: '#6f54b1',
    500: '#18108e',
    950: '#000000',
  },
}
SCSS
$custom: #18108e;
$custom-light: #6f54b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18108e",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 142
  },
  "hsl": {
    "h": 243.81,
    "s": 79.747,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31368,
    "c": 0.18837,
    "h": 270.4
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#18108E
secondary
#BAC337
accent
#F632EA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18108E

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

Preview Lab → · Contrast checker → · Palette generator →

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