#18196B#18196B

#18196B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.2% C 0.137 H 272.8°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#18196B
RGBrgb(24, 25, 107)
HSLhsl(239, 63%, 26%)
HSVhsv(239, 78%, 42%)
CMYKcmyk(77.6%, 76.6%, 0%, 58%)
CIE-LABlab(15.23, 29.79, -47.36)
CIE-LCHlch(15.23, 55.95, 302.17°)
OKLaboklab(28.18% 0.0066 -0.137)
OKLCHoklch(28.18% 0.137 272.8)
XYZxyz(3.3773, 1.9506, 14.1056)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18196B #6B6A18
analogous
#18426B #18196B #40186B
triadic
#18196B #6B1819 #196B18
tetradic
#18196B #6B1842 #6B6A18 #186B40
square
#18196B #6B1842 #6B6A18 #186B40
split-complementary
#18196B #6B4018 #426B18
monochromatic
#060619 #0D0D39 #18196B #23259D #2E30CF

Accessibility & contrast

On white

15.11
#18196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#18196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18196B
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18196B#FFFFFF#000000##FFFFFF
##18196B1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18196b;
/* rgb */ color: rgb(24, 25, 107);
/* oklch */ color: oklch(28.2% 0.137 272.8);
Tailwind
colors: {
  custom: {
    50: '#645696',
    500: '#18196b',
    950: '#000000',
  },
}
SCSS
$custom: #18196b;
$custom-light: #645696;
$custom-dark: #000000;
JSON
{
  "hex": "#18196b",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 239.277,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28176,
    "c": 0.1372,
    "h": 272.8
  },
  "luminance": 0.01951
}

Semantic roles & 50–950 ramp

primary
#18196B
secondary
#A1A03E
accent
#E441E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #18196B

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

Preview Lab → · Contrast checker → · Palette generator →

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