#18197D#18197D

#18197D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.161 H 271.1°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#18197D
RGBrgb(24, 25, 125)
HSLhsl(239, 68%, 29%)
HSVhsv(239, 81%, 49%)
CMYKcmyk(80.8%, 80%, 0%, 51%)
CIE-LABlab(17.32, 36.25, -55.52)
CIE-LCHlch(17.32, 66.31, 303.14°)
OKLaboklab(30.28% 0.0031 -0.1608)
OKLCHoklch(30.28% 0.161 271.1)
XYZxyz(4.4247, 2.3696, 19.6222)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18197D #7D7C18
analogous
#184C7D #18197D #4A187D
triadic
#18197D #7D1819 #197D18
tetradic
#18197D #7D184C #7D7C18 #187D4A
square
#18197D #7D184C #7D7C18 #187D4A
split-complementary
#18197D #7D4A18 #4C7D18
monochromatic
#05051A #0E0F4A #18197D #2223B0 #3738D9

Accessibility & contrast

On white

14.25
#18197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#18197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18197D
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18197D#FFFFFF#000000##FFFFFF
##18197D1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18197d;
/* rgb */ color: rgb(24, 25, 125);
/* oklch */ color: oklch(30.3% 0.161 271.1);
Tailwind
colors: {
  custom: {
    50: '#6957a4',
    500: '#18197d',
    950: '#000000',
  },
}
SCSS
$custom: #18197d;
$custom-light: #6957a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18197d",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 239.406,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30277,
    "c": 0.1608,
    "h": 271.1
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#18197D
secondary
#B2B03F
accent
#E93DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18197D

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

Preview Lab → · Contrast checker → · Palette generator →

#18197D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva