#18316B#18316B

#18316B is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.0% C 0.106 H 263.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#18316B
RGBrgb(24, 49, 107)
HSLhsl(222, 63%, 26%)
HSVhsv(222, 78%, 42%)
CMYKcmyk(77.6%, 54.2%, 0%, 58%)
CIE-LABlab(21.77, 12.95, -36.67)
CIE-LCHlch(21.77, 38.89, 289.45°)
OKLaboklab(33.01% -0.0112 -0.1055)
OKLCHoklch(33.01% 0.106 263.9)
XYZxyz(4.1279, 3.4519, 14.3558)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18316B #6B5218
analogous
#185A6B #18316B #28186B
triadic
#18316B #6B1831 #316B18
tetradic
#18316B #6B185A #6B5218 #186B28
square
#18316B #6B185A #6B5218 #186B28
split-complementary
#18316B #6B2818 #5A6B18
monochromatic
#060B19 #0D1A39 #18316B #23489D #2E5FCF

Accessibility & contrast

On white

12.42
#18316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18316B
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18316B#FFFFFF#000000##FFFFFF
##18316B1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C386D
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18316b;
/* rgb */ color: rgb(24, 49, 107);
/* oklch */ color: oklch(33.0% 0.106 263.9);
Tailwind
colors: {
  custom: {
    50: '#626896',
    500: '#18316b',
    950: '#000000',
  },
}
SCSS
$custom: #18316b;
$custom-light: #626896;
$custom-dark: #000000;
JSON
{
  "hex": "#18316b",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 221.928,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33014,
    "c": 0.10607,
    "h": 263.9
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#18316B
secondary
#A1833E
accent
#B541E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18316B

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

Preview Lab → · Contrast checker → · Palette generator →

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