#18318E#18318E

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

Color values

HEX#18318E
RGBrgb(24, 49, 142)
HSLhsl(227, 71%, 33%)
HSVhsv(227, 83%, 56%)
CMYKcmyk(83.1%, 65.5%, 0%, 44.3%)
CIE-LABlab(24.77, 27.19, -53.92)
CIE-LCHlch(24.77, 60.39, 296.76°)
OKLaboklab(36.2% -0.0097 -0.1561)
OKLCHoklch(36.2% 0.156 266.4)
XYZxyz(6.3558, 4.3431, 26.0893)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18318E #8E7518
analogous
#186C8E #18318E #3A188E
triadic
#18318E #8E1831 #318E18
tetradic
#18318E #8E186C #8E7518 #188E3A
square
#18318E #8E186C #8E7518 #188E3A
split-complementary
#18318E #8E3A18 #6C8E18
monochromatic
#060D25 #0F1F5A #18318E #2143C2 #4163DF

Accessibility & contrast

On white

11.24
#18318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18318E
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18318E#FFFFFF#000000##FFFFFF
##18318E1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18318e;
/* rgb */ color: rgb(24, 49, 142);
/* oklch */ color: oklch(36.2% 0.156 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b68b0',
    500: '#18318e',
    950: '#000000',
  },
}
SCSS
$custom: #18318e;
$custom-light: #6b68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18318e",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 227.288,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.362,
    "c": 0.15641,
    "h": 266.4
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#18318E
secondary
#C0A542
accent
#C83AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #18318E

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

Preview Lab → · Contrast checker → · Palette generator →

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