#18198F#18198F

#18198F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.183 H 269.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#18198F
RGBrgb(24, 25, 143)
HSLhsl(239, 71%, 33%)
HSVhsv(239, 83%, 56%)
CMYKcmyk(83.2%, 82.5%, 0%, 43.9%)
CIE-LABlab(19.52, 42.37, -63.21)
CIE-LCHlch(19.52, 76.09, 303.83°)
OKLaboklab(32.46% -0.0006 -0.183)
OKLCHoklch(32.46% 0.183 269.8)
XYZxyz(5.6806, 2.8720, 26.2362)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18198F #8F8E18
analogous
#18548F #18198F #53188F
triadic
#18198F #8F1819 #198F18
tetradic
#18198F #8F1854 #8F8E18 #188F53
square
#18198F #8F1854 #8F8E18 #188F53
split-complementary
#18198F #8F5318 #548F18
monochromatic
#060726 #0F105B #18198F #2122C3 #4243DF

Accessibility & contrast

On white

13.34
#18198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18198F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18198F#FFFFFF#000000##FFFFFF
##18198F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18198f;
/* rgb */ color: rgb(24, 25, 143);
/* oklch */ color: oklch(32.5% 0.183 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e59b1',
    500: '#18198f',
    950: '#000000',
  },
}
SCSS
$custom: #18198f;
$custom-light: #6e59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18198f",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 239.496,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3246,
    "c": 0.18303,
    "h": 269.8
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18198F

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

Preview Lab → · Contrast checker → · Palette generator →

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