#18196C#18196C

#18196C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.139 H 272.7°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#18196C
RGBrgb(24, 25, 108)
HSLhsl(239, 64%, 26%)
HSVhsv(239, 78%, 42%)
CMYKcmyk(77.8%, 76.9%, 0%, 57.6%)
CIE-LABlab(15.34, 30.15, -47.83)
CIE-LCHlch(15.34, 56.54, 302.23°)
OKLaboklab(28.29% 0.0064 -0.1384)
OKLCHoklch(28.29% 0.139 272.7)
XYZxyz(3.4302, 1.9718, 14.3843)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18196C #6C6B18
analogous
#18436C #18196C #41186C
triadic
#18196C #6C1819 #196C18
tetradic
#18196C #6C1843 #6C6B18 #186C41
square
#18196C #6C1843 #6C6B18 #186C41
split-complementary
#18196C #6C4118 #436C18
monochromatic
#060619 #0D0D3A #18196C #23259E #2E30D0

Accessibility & contrast

On white

15.06
#18196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18196C
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18196C#FFFFFF#000000##FFFFFF
##18196C1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18196c;
/* rgb */ color: rgb(24, 25, 108);
/* oklch */ color: oklch(28.3% 0.139 272.7);
Tailwind
colors: {
  custom: {
    50: '#645697',
    500: '#18196c',
    950: '#000000',
  },
}
SCSS
$custom: #18196c;
$custom-light: #645697;
$custom-dark: #000000;
JSON
{
  "hex": "#18196c",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 239.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.2829,
    "c": 0.13855,
    "h": 272.7
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#18196C
secondary
#A2A13E
accent
#E541E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #18196C

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

Preview Lab → · Contrast checker → · Palette generator →

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