#18316F#18316F

#18316F is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.112 H 264.5°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#18316F
RGBrgb(24, 49, 111)
HSLhsl(223, 64%, 26%)
HSVhsv(223, 78%, 44%)
CMYKcmyk(78.4%, 55.9%, 0%, 56.5%)
CIE-LABlab(22.08, 14.61, -38.75)
CIE-LCHlch(22.08, 41.41, 290.66°)
OKLaboklab(33.35% -0.0107 -0.1116)
OKLCHoklch(33.35% 0.112 264.5)
XYZxyz(4.3432, 3.5380, 15.4899)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18316F #6F5618
analogous
#185D6F #18316F #2B186F
triadic
#18316F #6F1831 #316F18
tetradic
#18316F #6F185D #6F5618 #186F2B
square
#18316F #6F185D #6F5618 #186F2B
split-complementary
#18316F #6F2B18 #5D6F18
monochromatic
#050B19 #0D1B3D #18316F #2347A1 #2F5ED2

Accessibility & contrast

On white

12.30
#18316F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#18316F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18316F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18316F#FFFFFF#000000##FFFFFF
##18316F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043971
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #18316f;
/* rgb */ color: rgb(24, 49, 111);
/* oklch */ color: oklch(33.3% 0.112 264.5);
Tailwind
colors: {
  custom: {
    50: '#636899',
    500: '#18316f',
    950: '#000000',
  },
}
SCSS
$custom: #18316f;
$custom-light: #636899;
$custom-dark: #000000;
JSON
{
  "hex": "#18316f",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 222.759,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33349,
    "c": 0.1121,
    "h": 264.5
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#18316F
secondary
#A5873E
accent
#B740E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #18316F

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

Preview Lab → · Contrast checker → · Palette generator →

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