#18107E#18107E

#18107E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.170 H 271.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#18107E
RGBrgb(24, 16, 126)
HSLhsl(244, 77%, 28%)
HSVhsv(244, 87%, 49%)
CMYKcmyk(81%, 87.3%, 0%, 50.6%)
CIE-LABlab(15.85, 41.23, -58.59)
CIE-LCHlch(15.85, 71.64, 305.13°)
OKLaboklab(29.29% 0.0055 -0.1695)
OKLCHoklch(29.29% 0.17 271.8)
XYZxyz(4.3266, 2.0707, 19.9063)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18107E #767E10
analogous
#103F7E #18107E #4F107E
triadic
#18107E #7E1810 #107E18
tetradic
#18107E #7E103F #767E10 #107E4F
square
#18107E #7E103F #767E10 #107E4F
split-complementary
#18107E #7E4F10 #3F7E10
monochromatic
#05031B #0E0948 #18107E #2217B4 #3325E3

Accessibility & contrast

On white

14.85
#18107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18107E
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18107E#FFFFFF#000000##FFFFFF
##18107E1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00227C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18107e;
/* rgb */ color: rgb(24, 16, 126);
/* oklch */ color: oklch(29.3% 0.170 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a53a5',
    500: '#18107e',
    950: '#000000',
  },
}
SCSS
$custom: #18107e;
$custom-light: #6a53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18107e",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 244.364,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29294,
    "c": 0.16958,
    "h": 271.8
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#18107E
secondary
#ABB436
accent
#F434E6
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18107E

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

Preview Lab → · Contrast checker → · Palette generator →

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