#18197C#18197C

#18197C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.160 H 271.2°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#18197C
RGBrgb(24, 25, 124)
HSLhsl(239, 68%, 29%)
HSVhsv(239, 81%, 49%)
CMYKcmyk(80.6%, 79.8%, 0%, 51.4%)
CIE-LABlab(17.20, 35.90, -55.08)
CIE-LCHlch(17.20, 65.75, 303.10°)
OKLaboklab(30.16% 0.0033 -0.1595)
OKLCHoklch(30.16% 0.16 271.2)
XYZxyz(4.3612, 2.3442, 19.2875)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18197C #7C7B18
analogous
#184B7C #18197C #49187C
triadic
#18197C #7C1819 #197C18
tetradic
#18197C #7C184B #7C7B18 #187C49
square
#18197C #7C184B #7C7B18 #187C49
split-complementary
#18197C #7C4918 #4B7C18
monochromatic
#05051A #0E0F49 #18197C #2223AF #3638D8

Accessibility & contrast

On white

14.30
#18197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18197C
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18197C#FFFFFF#000000##FFFFFF
##18197C1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18197c;
/* rgb */ color: rgb(24, 25, 124);
/* oklch */ color: oklch(30.2% 0.160 271.2);
Tailwind
colors: {
  custom: {
    50: '#6957a3',
    500: '#18197c',
    950: '#000000',
  },
}
SCSS
$custom: #18197c;
$custom-light: #6957a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18197c",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 239.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30157,
    "c": 0.15952,
    "h": 271.2
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#18197C
secondary
#B1AF3F
accent
#E93DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18197C

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

Preview Lab → · Contrast checker → · Palette generator →

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