#18197B#18197B

#18197B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.158 H 271.3°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#18197B
RGBrgb(24, 25, 123)
HSLhsl(239, 67%, 29%)
HSVhsv(239, 80%, 48%)
CMYKcmyk(80.5%, 79.7%, 0%, 51.8%)
CIE-LABlab(17.08, 35.55, -54.64)
CIE-LCHlch(17.08, 65.19, 303.05°)
OKLaboklab(30.04% 0.0035 -0.1582)
OKLCHoklch(30.04% 0.158 271.3)
XYZxyz(4.2983, 2.3190, 18.9561)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18197B #7B7A18
analogous
#184B7B #18197B #49187B
triadic
#18197B #7B1819 #197B18
tetradic
#18197B #7B184B #7B7A18 #187B49
square
#18197B #7B184B #7B7A18 #187B49
split-complementary
#18197B #7B4918 #4B7B18
monochromatic
#05051A #0E0F48 #18197B #2223AE #3637D8

Accessibility & contrast

On white

14.34
#18197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18197B
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18197B#FFFFFF#000000##FFFFFF
##18197B1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18197b;
/* rgb */ color: rgb(24, 25, 123);
/* oklch */ color: oklch(30.0% 0.158 271.3);
Tailwind
colors: {
  custom: {
    50: '#6957a2',
    500: '#18197b',
    950: '#000000',
  },
}
SCSS
$custom: #18197b;
$custom-light: #6957a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18197b",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 239.394,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30038,
    "c": 0.15825,
    "h": 271.3
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18197B

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

Preview Lab → · Contrast checker → · Palette generator →

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