#18316A#18316A

#18316A is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.105 H 263.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#18316A
RGBrgb(24, 49, 106)
HSLhsl(222, 63%, 25%)
HSVhsv(222, 77%, 42%)
CMYKcmyk(77.4%, 53.8%, 0%, 58.4%)
CIE-LABlab(21.69, 12.54, -36.15)
CIE-LCHlch(21.69, 38.26, 289.12°)
OKLaboklab(32.93% -0.0113 -0.1039)
OKLCHoklch(32.93% 0.105 263.8)
XYZxyz(4.0756, 3.4310, 14.0803)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18316A #6A5118
analogous
#185A6A #18316A #28186A
triadic
#18316A #6A1831 #316A18
tetradic
#18316A #6A185A #6A5118 #186A28
square
#18316A #6A185A #6A5118 #186A28
split-complementary
#18316A #6A2818 #5A6A18
monochromatic
#060C19 #0D1A38 #18316A #23489C #2F5FCE

Accessibility & contrast

On white

12.45
#18316A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#18316A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18316A
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18316A#FFFFFF#000000##FFFFFF
##18316A1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#003F48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18316a;
/* rgb */ color: rgb(24, 49, 106);
/* oklch */ color: oklch(32.9% 0.105 263.8);
Tailwind
colors: {
  custom: {
    50: '#626895',
    500: '#18316a',
    950: '#000000',
  },
}
SCSS
$custom: #18316a;
$custom-light: #626895;
$custom-dark: #000000;
JSON
{
  "hex": "#18316a",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 221.707,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32931,
    "c": 0.10455,
    "h": 263.8
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#18316A
secondary
#A0823E
accent
#B442E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18316A

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

Preview Lab → · Contrast checker → · Palette generator →

#18316A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva