#18218F#18218F

#18218F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.176 H 269.1°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#18218F
RGBrgb(24, 33, 143)
HSLhsl(235, 71%, 33%)
HSVhsv(235, 83%, 56%)
CMYKcmyk(83.2%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.07, 37.92, -60.64)
CIE-LCHlch(21.07, 71.52, 302.02°)
OKLaboklab(33.55% -0.0028 -0.1757)
OKLCHoklch(33.55% 0.176 269.1)
XYZxyz(5.8768, 3.2644, 26.3016)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18218F #8F8618
analogous
#185D8F #18218F #4A188F
triadic
#18218F #8F1821 #218F18
tetradic
#18218F #8F185D #8F8618 #188F4A
square
#18218F #8F185D #8F8618 #188F4A
split-complementary
#18218F #8F4A18 #5D8F18
monochromatic
#060926 #0F155B #18218F #212DC3 #424EDF

Accessibility & contrast

On white

12.70
#18218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#18218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18218F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18218F#FFFFFF#000000##FFFFFF
##18218F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18218f;
/* rgb */ color: rgb(24, 33, 143);
/* oklch */ color: oklch(33.6% 0.176 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d5eb1',
    500: '#18218f',
    950: '#000000',
  },
}
SCSS
$custom: #18218f;
$custom-light: #6d5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#18218f",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 235.462,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3355,
    "c": 0.17572,
    "h": 269.1
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#18218F
secondary
#C0B743
accent
#E03AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #18218F

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

Preview Lab → · Contrast checker → · Palette generator →

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