#18198B#18198B

#18198B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.178 H 270.1°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#18198B
RGBrgb(24, 25, 139)
HSLhsl(239, 71%, 32%)
HSVhsv(239, 83%, 55%)
CMYKcmyk(82.7%, 82%, 0%, 45.5%)
CIE-LABlab(19.03, 41.04, -61.54)
CIE-LCHlch(19.03, 73.97, 303.70°)
OKLaboklab(31.97% 0.0002 -0.1782)
OKLCHoklch(31.97% 0.178 270.1)
XYZxyz(5.3829, 2.7529, 24.6688)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18198B #8B8A18
analogous
#18538B #18198B #51188B
triadic
#18198B #8B1819 #198B18
tetradic
#18198B #8B1853 #8B8A18 #188B51
square
#18198B #8B1853 #8B8A18 #188B51
split-complementary
#18198B #8B5118 #538B18
monochromatic
#060623 #0F1057 #18198B #2122BF #3F41DE

Accessibility & contrast

On white

13.54
#18198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18198B
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18198B#FFFFFF#000000##FFFFFF
##18198B1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18198b;
/* rgb */ color: rgb(24, 25, 139);
/* oklch */ color: oklch(32.0% 0.178 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d58ae',
    500: '#18198b',
    950: '#000000',
  },
}
SCSS
$custom: #18198b;
$custom-light: #6d58ae;
$custom-dark: #000000;
JSON
{
  "hex": "#18198b",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 239.478,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.31969,
    "c": 0.17819,
    "h": 270.1
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#18198B
secondary
#BEBD40
accent
#EC3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080310
muted
#7B787F

Preview Lab

Preview with #18198B

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

Preview Lab → · Contrast checker → · Palette generator →

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