#18196F#18196F

#18196F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.143 H 272.4°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#18196F
RGBrgb(24, 25, 111)
HSLhsl(239, 64%, 26%)
HSVhsv(239, 78%, 44%)
CMYKcmyk(78.4%, 77.5%, 0%, 56.5%)
CIE-LABlab(15.68, 31.25, -49.22)
CIE-LCHlch(15.68, 58.30, 302.41°)
OKLaboklab(28.63% 0.0059 -0.1425)
OKLCHoklch(28.63% 0.143 272.4)
XYZxyz(3.5926, 2.0368, 15.2396)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18196F #6F6E18
analogous
#18456F #18196F #43186F
triadic
#18196F #6F1819 #196F18
tetradic
#18196F #6F1845 #6F6E18 #186F43
square
#18196F #6F1845 #6F6E18 #186F43
split-complementary
#18196F #6F4318 #456F18
monochromatic
#050619 #0D0E3D #18196F #2324A1 #2F31D2

Accessibility & contrast

On white

14.92
#18196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18196F
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18196F#FFFFFF#000000##FFFFFF
##18196F1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18196f;
/* rgb */ color: rgb(24, 25, 111);
/* oklch */ color: oklch(28.6% 0.143 272.4);
Tailwind
colors: {
  custom: {
    50: '#655799',
    500: '#18196f',
    950: '#000000',
  },
}
SCSS
$custom: #18196f;
$custom-light: #655799;
$custom-dark: #000000;
JSON
{
  "hex": "#18196f",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 239.31,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28634,
    "c": 0.14258,
    "h": 272.4
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#18196F
secondary
#A5A33E
accent
#E640E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #18196F

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

Preview Lab → · Contrast checker → · Palette generator →

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