#18108C#18108C

#18108C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.186 H 270.5°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#18108C
RGBrgb(24, 16, 140)
HSLhsl(244, 79%, 31%)
HSVhsv(244, 89%, 55%)
CMYKcmyk(82.9%, 88.6%, 0%, 45.1%)
CIE-LABlab(17.73, 45.58, -64.32)
CIE-LCHlch(17.73, 78.83, 305.32°)
OKLaboklab(31.11% 0.0017 -0.1861)
OKLCHoklch(31.11% 0.186 270.5)
XYZxyz(5.2940, 2.4576, 25.0012)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18108C #848C10
analogous
#10468C #18108C #56108C
triadic
#18108C #8C1810 #108C18
tetradic
#18108C #8C1046 #848C10 #108C56
square
#18108C #8C1046 #848C10 #108C56
split-complementary
#18108C #8C5610 #468C10
monochromatic
#05031E #0F0A55 #18108C #2116C3 #3B2FE7

Accessibility & contrast

On white

14.08
#18108C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#18108C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18108C
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18108C#FFFFFF#000000##FFFFFF
##18108C1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00318F
Deuteranopia (green-blind)
#00258A
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18108c;
/* rgb */ color: rgb(24, 16, 140);
/* oklch */ color: oklch(31.1% 0.186 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e54af',
    500: '#18108c',
    950: '#000000',
  },
}
SCSS
$custom: #18108c;
$custom-light: #6e54af;
$custom-dark: #000000;
JSON
{
  "hex": "#18108c",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 140
  },
  "hsl": {
    "h": 243.871,
    "s": 79.487,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31107,
    "c": 0.18607,
    "h": 270.5
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18108C

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

Preview Lab → · Contrast checker → · Palette generator →

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