#18198A#18198A

#18198A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.177 H 270.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#18198A
RGBrgb(24, 25, 138)
HSLhsl(239, 70%, 32%)
HSVhsv(239, 83%, 54%)
CMYKcmyk(82.6%, 81.9%, 0%, 45.9%)
CIE-LABlab(18.90, 40.70, -61.11)
CIE-LCHlch(18.90, 73.43, 303.67°)
OKLaboklab(31.85% 0.0004 -0.177)
OKLCHoklch(31.85% 0.177 270.1)
XYZxyz(5.3102, 2.7238, 24.2857)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18198A #8A8918
analogous
#18528A #18198A #50188A
triadic
#18198A #8A1819 #198A18
tetradic
#18198A #8A1852 #8A8918 #188A50
square
#18198A #8A1852 #8A8918 #188A50
split-complementary
#18198A #8A5018 #528A18
monochromatic
#060622 #0F1056 #18198A #2122BE #3F40DE

Accessibility & contrast

On white

13.59
#18198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18198A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18198A#FFFFFF#000000##FFFFFF
##18198A1.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18198a;
/* rgb */ color: rgb(24, 25, 138);
/* oklch */ color: oklch(31.8% 0.177 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d58ad',
    500: '#18198a',
    950: '#000000',
  },
}
SCSS
$custom: #18198a;
$custom-light: #6d58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18198a",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 239.474,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31847,
    "c": 0.17697,
    "h": 270.1
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#18198A
secondary
#BDBC40
accent
#EC3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #18198A

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

Preview Lab → · Contrast checker → · Palette generator →

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