#18213F#18213F

#18213F is a dark, muted blue. Relative luminance 0.016; OKLCH L 25.6% C 0.058 H 269.4°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#18213F
RGBrgb(24, 33, 63)
HSLhsl(226, 45%, 17%)
HSVhsv(226, 62%, 25%)
CMYKcmyk(61.9%, 47.6%, 0%, 75.3%)
CIE-LABlab(13.48, 6.65, -20.43)
CIE-LCHlch(13.48, 21.48, 288.04°)
OKLaboklab(25.65% -0.0006 -0.058)
OKLCHoklch(25.65% 0.058 269.4)
XYZxyz(1.8175, 1.6407, 4.9226)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18213F #3F3618
analogous
#18353F #18213F #23183F
triadic
#18213F #3F1821 #213F18
tetradic
#18213F #3F1835 #3F3618 #183F23
square
#18213F #3F1835 #3F3618 #183F23
split-complementary
#18213F #3F2318 #353F18
monochromatic
#080C16 #080C16 #18213F #29386B #3A4F98

Accessibility & contrast

On white

15.81
#18213F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#18213F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18213F
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18213F#FFFFFF#000000##FFFFFF
##18213F1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142440
Deuteranopia (green-blind)
#10213E
Tritanopia (blue-blind)
#05282C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #18213f;
/* rgb */ color: rgb(24, 33, 63);
/* oklch */ color: oklch(25.6% 0.058 269.4);
Tailwind
colors: {
  custom: {
    50: '#585b74',
    500: '#18213f',
    950: '#000000',
  },
}
SCSS
$custom: #18213f;
$custom-light: #585b74;
$custom-dark: #000000;
JSON
{
  "hex": "#18213f",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 63
  },
  "hsl": {
    "h": 226.154,
    "s": 44.828,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25648,
    "c": 0.05799,
    "h": 269.4
  },
  "luminance": 0.01641
}

Semantic roles & 50–950 ramp

primary
#18213F
secondary
#75693D
accent
#B753D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #18213F

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

Preview Lab → · Contrast checker → · Palette generator →

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