#18197E#18197E

#18197E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.162 H 271.0°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#18197E
RGBrgb(24, 25, 126)
HSLhsl(239, 68%, 29%)
HSVhsv(239, 81%, 49%)
CMYKcmyk(81%, 80.2%, 0%, 50.6%)
CIE-LABlab(17.44, 36.60, -55.96)
CIE-LCHlch(17.44, 66.87, 303.19°)
OKLaboklab(30.4% 0.0029 -0.162)
OKLCHoklch(30.4% 0.162 271)
XYZxyz(4.4889, 2.3953, 19.9604)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18197E #7E7D18
analogous
#184C7E #18197E #4A187E
triadic
#18197E #7E1819 #197E18
tetradic
#18197E #7E184C #7E7D18 #187E4A
square
#18197E #7E184C #7E7D18 #187E4A
split-complementary
#18197E #7E4A18 #4C7E18
monochromatic
#05051A #0E0F4B #18197E #2223B1 #3739D9

Accessibility & contrast

On white

14.20
#18197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18197E
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18197E#FFFFFF#000000##FFFFFF
##18197E1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18197e;
/* rgb */ color: rgb(24, 25, 126);
/* oklch */ color: oklch(30.4% 0.162 271.0);
Tailwind
colors: {
  custom: {
    50: '#6958a5',
    500: '#18197e',
    950: '#000000',
  },
}
SCSS
$custom: #18197e;
$custom-light: #6958a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18197e",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 239.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30396,
    "c": 0.16207,
    "h": 271
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18197E

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

Preview Lab → · Contrast checker → · Palette generator →

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