#18198E#18198E

#18198E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.182 H 269.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#18198E
RGBrgb(24, 25, 142)
HSLhsl(239, 71%, 33%)
HSVhsv(239, 83%, 56%)
CMYKcmyk(83.1%, 82.4%, 0%, 44.3%)
CIE-LABlab(19.40, 42.04, -62.79)
CIE-LCHlch(19.40, 75.56, 303.80°)
OKLaboklab(32.34% -0.0004 -0.1818)
OKLCHoklch(32.34% 0.182 269.9)
XYZxyz(5.6051, 2.8418, 25.8390)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18198E #8E8D18
analogous
#18548E #18198E #52188E
triadic
#18198E #8E1819 #198E18
tetradic
#18198E #8E1854 #8E8D18 #188E52
square
#18198E #8E1854 #8E8D18 #188E52
split-complementary
#18198E #8E5218 #548E18
monochromatic
#060725 #0F105A #18198E #2122C2 #4143DF

Accessibility & contrast

On white

13.39
#18198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#18198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18198E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18198E#FFFFFF#000000##FFFFFF
##18198E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18198e;
/* rgb */ color: rgb(24, 25, 142);
/* oklch */ color: oklch(32.3% 0.182 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e59b0',
    500: '#18198e',
    950: '#000000',
  },
}
SCSS
$custom: #18198e;
$custom-light: #6e59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18198e",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 239.492,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32337,
    "c": 0.18182,
    "h": 269.9
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#18198E
secondary
#C0BF42
accent
#EC3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #18198E

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

Preview Lab → · Contrast checker → · Palette generator →

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