#18316C#18316C

#18316C is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.1% C 0.108 H 264.1°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#18316C
RGBrgb(24, 49, 108)
HSLhsl(222, 64%, 26%)
HSVhsv(222, 78%, 42%)
CMYKcmyk(77.8%, 54.6%, 0%, 57.6%)
CIE-LABlab(21.85, 13.37, -37.19)
CIE-LCHlch(21.85, 39.52, 289.77°)
OKLaboklab(33.1% -0.0111 -0.107)
OKLCHoklch(33.1% 0.108 264.1)
XYZxyz(4.1808, 3.4731, 14.6345)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18316C #6C5318
analogous
#185B6C #18316C #29186C
triadic
#18316C #6C1831 #316C18
tetradic
#18316C #6C185B #6C5318 #186C29
square
#18316C #6C185B #6C5318 #186C29
split-complementary
#18316C #6C2918 #5B6C18
monochromatic
#060B19 #0D1A3A #18316C #23489E #2E5ED0

Accessibility & contrast

On white

12.39
#18316C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18316C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18316C#FFFFFF#000000##FFFFFF
##18316C1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18316c;
/* rgb */ color: rgb(24, 49, 108);
/* oklch */ color: oklch(33.1% 0.108 264.1);
Tailwind
colors: {
  custom: {
    50: '#626897',
    500: '#18316c',
    950: '#000000',
  },
}
SCSS
$custom: #18316c;
$custom-light: #626897;
$custom-dark: #000000;
JSON
{
  "hex": "#18316c",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 222.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33097,
    "c": 0.10758,
    "h": 264.1
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#18316C
secondary
#A2843E
accent
#B541E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18316C

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

Preview Lab → · Contrast checker → · Palette generator →

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