#18117E#18117E

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

Color values

HEX#18117E
RGBrgb(24, 17, 126)
HSLhsl(244, 76%, 28%)
HSVhsv(244, 87%, 49%)
CMYKcmyk(81%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.01, 40.77, -58.33)
CIE-LCHlch(16.01, 71.17, 304.95°)
OKLaboklab(29.4% 0.0052 -0.1688)
OKLCHoklch(29.4% 0.169 271.8)
XYZxyz(4.3418, 2.1010, 19.9113)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18117E #777E11
analogous
#11407E #18117E #4E117E
triadic
#18117E #7E1811 #117E18
tetradic
#18117E #7E1140 #777E11 #117E4E
square
#18117E #7E1140 #777E11 #117E4E
split-complementary
#18117E #7E4E11 #407E11
monochromatic
#05041B #0E0A48 #18117E #2218B4 #3327E2

Accessibility & contrast

On white

14.79
#18117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18117E
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18117E#FFFFFF#000000##FFFFFF
##18117E1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18117e;
/* rgb */ color: rgb(24, 17, 126);
/* oklch */ color: oklch(29.4% 0.169 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a53a5',
    500: '#18117e',
    950: '#000000',
  },
}
SCSS
$custom: #18117e;
$custom-light: #6a53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18117e",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 243.853,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.294,
    "c": 0.16885,
    "h": 271.8
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#18117E
secondary
#ACB437
accent
#F335E7
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18117E

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

Preview Lab → · Contrast checker → · Palette generator →

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