#18318D#18318D

#18318D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.155 H 266.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#18318D
RGBrgb(24, 49, 141)
HSLhsl(227, 71%, 32%)
HSVhsv(227, 83%, 55%)
CMYKcmyk(83%, 65.2%, 0%, 44.7%)
CIE-LABlab(24.68, 26.80, -53.45)
CIE-LCHlch(24.68, 59.80, 296.63°)
OKLaboklab(36.1% -0.0097 -0.1547)
OKLCHoklch(36.1% 0.155 266.4)
XYZxyz(6.2810, 4.3132, 25.6956)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18318D #8D7418
analogous
#186C8D #18318D #39188D
triadic
#18318D #8D1831 #318D18
tetradic
#18318D #8D186C #8D7418 #188D39
square
#18318D #8D186C #8D7418 #188D39
split-complementary
#18318D #8D3918 #6C8D18
monochromatic
#060D24 #0F1F59 #18318D #2143C1 #4163DF

Accessibility & contrast

On white

11.27
#18318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#18318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18318D
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18318D#FFFFFF#000000##FFFFFF
##18318D1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #18318d;
/* rgb */ color: rgb(24, 49, 141);
/* oklch */ color: oklch(36.1% 0.155 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b68af',
    500: '#18318d',
    950: '#000000',
  },
}
SCSS
$custom: #18318d;
$custom-light: #6b68af;
$custom-dark: #000000;
JSON
{
  "hex": "#18318d",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 227.179,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36102,
    "c": 0.15505,
    "h": 266.4
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#18318D
secondary
#BFA442
accent
#C73AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #18318D

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

Preview Lab → · Contrast checker → · Palette generator →

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