#18318F#18318F

#18318F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.158 H 266.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#18318F
RGBrgb(24, 49, 143)
HSLhsl(227, 71%, 33%)
HSVhsv(227, 83%, 56%)
CMYKcmyk(83.2%, 65.7%, 0%, 43.9%)
CIE-LABlab(24.87, 27.59, -54.39)
CIE-LCHlch(24.87, 60.98, 296.90°)
OKLaboklab(36.3% -0.0098 -0.1575)
OKLCHoklch(36.3% 0.158 266.5)
XYZxyz(6.4312, 4.3732, 26.4864)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18318F #8F7618
analogous
#186C8F #18318F #3B188F
triadic
#18318F #8F1831 #318F18
tetradic
#18318F #8F186C #8F7618 #188F3B
square
#18318F #8F186C #8F7618 #188F3B
split-complementary
#18318F #8F3B18 #6C8F18
monochromatic
#060D26 #0F1F5B #18318F #2143C3 #4263DF

Accessibility & contrast

On white

11.20
#18318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#18318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18318F
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18318F#FFFFFF#000000##FFFFFF
##18318F1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #18318f;
/* rgb */ color: rgb(24, 49, 143);
/* oklch */ color: oklch(36.3% 0.158 266.5);
Tailwind
colors: {
  custom: {
    50: '#6c69b1',
    500: '#18318f',
    950: '#000000',
  },
}
SCSS
$custom: #18318f;
$custom-light: #6c69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18318f",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 227.395,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36298,
    "c": 0.15777,
    "h": 266.5
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#18318F
secondary
#C0A643
accent
#C83AEE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #18318F

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

Preview Lab → · Contrast checker → · Palette generator →

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