#18196E#18196E

#18196E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.141 H 272.5°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#18196E
RGBrgb(24, 25, 110)
HSLhsl(239, 64%, 26%)
HSVhsv(239, 78%, 43%)
CMYKcmyk(78.2%, 77.3%, 0%, 56.9%)
CIE-LABlab(15.57, 30.89, -48.76)
CIE-LCHlch(15.57, 57.72, 302.35°)
OKLaboklab(28.52% 0.006 -0.1411)
OKLCHoklch(28.52% 0.141 272.5)
XYZxyz(3.5378, 2.0149, 14.9513)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18196E #6E6D18
analogous
#18446E #18196E #42186E
triadic
#18196E #6E1819 #196E18
tetradic
#18196E #6E1844 #6E6D18 #186E42
square
#18196E #6E1844 #6E6D18 #186E42
split-complementary
#18196E #6E4218 #446E18
monochromatic
#050619 #0D0E3C #18196E #2324A0 #2F31D2

Accessibility & contrast

On white

14.97
#18196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#18196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18196E
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18196E#FFFFFF#000000##FFFFFF
##18196E1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18196e;
/* rgb */ color: rgb(24, 25, 110);
/* oklch */ color: oklch(28.5% 0.141 272.5);
Tailwind
colors: {
  custom: {
    50: '#655799',
    500: '#18196e',
    950: '#000000',
  },
}
SCSS
$custom: #18196e;
$custom-light: #655799;
$custom-dark: #000000;
JSON
{
  "hex": "#18196e",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 239.302,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28519,
    "c": 0.14124,
    "h": 272.5
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18196E

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

Preview Lab → · Contrast checker → · Palette generator →

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