#18216F#18216F

#18216F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.133 H 270.6°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#18216F
RGBrgb(24, 33, 111)
HSLhsl(234, 64%, 26%)
HSVhsv(234, 78%, 44%)
CMYKcmyk(78.4%, 70.3%, 0%, 56.5%)
CIE-LABlab(17.60, 25.99, -46.07)
CIE-LCHlch(17.60, 52.89, 299.43°)
OKLaboklab(30.01% 0.0013 -0.1333)
OKLCHoklch(30.01% 0.133 270.6)
XYZxyz(3.7888, 2.4292, 15.3050)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18216F #6F6618
analogous
#184D6F #18216F #3B186F
triadic
#18216F #6F1821 #216F18
tetradic
#18216F #6F184D #6F6618 #186F3B
square
#18216F #6F184D #6F6618 #186F3B
split-complementary
#18216F #6F3B18 #4D6F18
monochromatic
#050719 #0D123D #18216F #2330A1 #2F40D2

Accessibility & contrast

On white

14.13
#18216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#18216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18216F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18216F#FFFFFF#000000##FFFFFF
##18216F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18216f;
/* rgb */ color: rgb(24, 33, 111);
/* oklch */ color: oklch(30.0% 0.133 270.6);
Tailwind
colors: {
  custom: {
    50: '#645c99',
    500: '#18216f',
    950: '#000000',
  },
}
SCSS
$custom: #18216f;
$custom-light: #645c99;
$custom-dark: #000000;
JSON
{
  "hex": "#18216f",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 233.793,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30013,
    "c": 0.13327,
    "h": 270.6
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#18216F
secondary
#A59A3E
accent
#D640E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18216F

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

Preview Lab → · Contrast checker → · Palette generator →

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