#18316D#18316D

#18316D is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.109 H 264.2°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#18316D
RGBrgb(24, 49, 109)
HSLhsl(222, 64%, 26%)
HSVhsv(222, 78%, 43%)
CMYKcmyk(78%, 55%, 0%, 57.3%)
CIE-LABlab(21.92, 13.78, -37.71)
CIE-LCHlch(21.92, 40.15, 290.07°)
OKLaboklab(33.18% -0.0109 -0.1085)
OKLCHoklch(33.18% 0.109 264.2)
XYZxyz(4.2343, 3.4945, 14.9164)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18316D #6D5418
analogous
#185B6D #18316D #29186D
triadic
#18316D #6D1831 #316D18
tetradic
#18316D #6D185B #6D5418 #186D29
square
#18316D #6D185B #6D5418 #186D29
split-complementary
#18316D #6D2918 #5B6D18
monochromatic
#060B19 #0D1A3B #18316D #23489F #2E5ED1

Accessibility & contrast

On white

12.36
#18316D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#18316D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18316D
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18316D#FFFFFF#000000##FFFFFF
##18316D1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08396F
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18316d;
/* rgb */ color: rgb(24, 49, 109);
/* oklch */ color: oklch(33.2% 0.109 264.2);
Tailwind
colors: {
  custom: {
    50: '#626897',
    500: '#18316d',
    950: '#000000',
  },
}
SCSS
$custom: #18316d;
$custom-light: #626897;
$custom-dark: #000000;
JSON
{
  "hex": "#18316d",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 109
  },
  "hsl": {
    "h": 222.353,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3318,
    "c": 0.10909,
    "h": 264.2
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#18316D
secondary
#A3853E
accent
#B641E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18316D

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

Preview Lab → · Contrast checker → · Palette generator →

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