#18197A#18197A

#18197A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.157 H 271.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#18197A
RGBrgb(24, 25, 122)
HSLhsl(239, 67%, 29%)
HSVhsv(239, 80%, 48%)
CMYKcmyk(80.3%, 79.5%, 0%, 52.2%)
CIE-LABlab(16.96, 35.20, -54.20)
CIE-LCHlch(16.96, 64.63, 303.00°)
OKLaboklab(29.92% 0.0037 -0.1569)
OKLCHoklch(29.92% 0.157 271.4)
XYZxyz(4.2360, 2.2941, 18.6281)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18197A #7A7918
analogous
#184A7A #18197A #48187A
triadic
#18197A #7A1819 #197A18
tetradic
#18197A #7A184A #7A7918 #187A48
square
#18197A #7A184A #7A7918 #187A48
split-complementary
#18197A #7A4818 #4A7A18
monochromatic
#05051A #0E0F47 #18197A #2223AD #3537D7

Accessibility & contrast

On white

14.39
#18197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18197A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18197A#FFFFFF#000000##FFFFFF
##18197A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18197a;
/* rgb */ color: rgb(24, 25, 122);
/* oklch */ color: oklch(29.9% 0.157 271.4);
Tailwind
colors: {
  custom: {
    50: '#6857a2',
    500: '#18197a',
    950: '#000000',
  },
}
SCSS
$custom: #18197a;
$custom-light: #6857a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18197a",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 239.388,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.2992,
    "c": 0.15696,
    "h": 271.4
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#18197A
secondary
#AFAE3F
accent
#E83EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18197A

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

Preview Lab → · Contrast checker → · Palette generator →

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