#18197F#18197F

#18197F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.163 H 270.9°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#18197F
RGBrgb(24, 25, 127)
HSLhsl(239, 68%, 30%)
HSVhsv(239, 81%, 50%)
CMYKcmyk(81.1%, 80.3%, 0%, 50.2%)
CIE-LABlab(17.56, 36.95, -56.40)
CIE-LCHlch(17.56, 67.43, 303.23°)
OKLaboklab(30.52% 0.0027 -0.1633)
OKLCHoklch(30.52% 0.163 270.9)
XYZxyz(4.5538, 2.4212, 20.3019)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18197F #7F7E18
analogous
#184D7F #18197F #4A187F
triadic
#18197F #7F1819 #197F18
tetradic
#18197F #7F184D #7F7E18 #187F4A
square
#18197F #7F184D #7F7E18 #187F4A
split-complementary
#18197F #7F4A18 #4D7F18
monochromatic
#05051A #0E0F4C #18197F #2223B2 #383AD9

Accessibility & contrast

On white

14.15
#18197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#18197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18197F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18197F#FFFFFF#000000##FFFFFF
##18197F1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18197f;
/* rgb */ color: rgb(24, 25, 127);
/* oklch */ color: oklch(30.5% 0.163 270.9);
Tailwind
colors: {
  custom: {
    50: '#6a58a5',
    500: '#18197f',
    950: '#000000',
  },
}
SCSS
$custom: #18197f;
$custom-light: #6a58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18197f",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 239.417,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30516,
    "c": 0.16332,
    "h": 270.9
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18197F

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

Preview Lab → · Contrast checker → · Palette generator →

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