#18316E#18316E

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

Color values

HEX#18316E
RGBrgb(24, 49, 110)
HSLhsl(223, 64%, 26%)
HSVhsv(223, 78%, 43%)
CMYKcmyk(78.2%, 55.5%, 0%, 56.9%)
CIE-LABlab(22.00, 14.20, -38.23)
CIE-LCHlch(22.00, 40.78, 290.37°)
OKLaboklab(33.26% -0.0108 -0.1101)
OKLCHoklch(33.26% 0.111 264.4)
XYZxyz(4.2885, 3.5161, 15.2015)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18316E #6E5518
analogous
#185C6E #18316E #2A186E
triadic
#18316E #6E1831 #316E18
tetradic
#18316E #6E185C #6E5518 #186E2A
square
#18316E #6E185C #6E5518 #186E2A
split-complementary
#18316E #6E2A18 #5C6E18
monochromatic
#050B19 #0D1B3C #18316E #2347A0 #2F5ED2

Accessibility & contrast

On white

12.33
#18316E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18316E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18316E#FFFFFF#000000##FFFFFF
##18316E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063970
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #18316e;
/* rgb */ color: rgb(24, 49, 110);
/* oklch */ color: oklch(33.3% 0.111 264.4);
Tailwind
colors: {
  custom: {
    50: '#636898',
    500: '#18316e',
    950: '#000000',
  },
}
SCSS
$custom: #18316e;
$custom-light: #636898;
$custom-dark: #000000;
JSON
{
  "hex": "#18316e",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 110
  },
  "hsl": {
    "h": 222.558,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33264,
    "c": 0.1106,
    "h": 264.4
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#18316E
secondary
#A4863E
accent
#B741E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #18316E

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

Preview Lab → · Contrast checker → · Palette generator →

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