#18213E#18213E

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

Color values

HEX#18213E
RGBrgb(24, 33, 62)
HSLhsl(226, 44%, 17%)
HSVhsv(226, 61%, 24%)
CMYKcmyk(61.3%, 46.8%, 0%, 75.7%)
CIE-LABlab(13.41, 6.26, -19.83)
CIE-LCHlch(13.41, 20.80, 287.51°)
OKLaboklab(25.58% -0.0008 -0.0562)
OKLCHoklch(25.58% 0.056 269.2)
XYZxyz(1.7898, 1.6296, 4.7767)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18213E #3E3518
analogous
#18343E #18213E #22183E
triadic
#18213E #3E1821 #213E18
tetradic
#18213E #3E1834 #3E3518 #183E22
square
#18213E #3E1834 #3E3518 #183E22
split-complementary
#18213E #3E2218 #343E18
monochromatic
#090C16 #090C16 #18213E #29386A #3A5096

Accessibility & contrast

On white

15.84
#18213E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18213E
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18213E#FFFFFF#000000##FFFFFF
##18213E1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15243F
Deuteranopia (green-blind)
#11213D
Tritanopia (blue-blind)
#06272C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #18213e;
/* rgb */ color: rgb(24, 33, 62);
/* oklch */ color: oklch(25.6% 0.056 269.2);
Tailwind
colors: {
  custom: {
    50: '#585b73',
    500: '#18213e',
    950: '#000000',
  },
}
SCSS
$custom: #18213e;
$custom-light: #585b73;
$custom-dark: #000000;
JSON
{
  "hex": "#18213e",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 62
  },
  "hsl": {
    "h": 225.789,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25576,
    "c": 0.05625,
    "h": 269.2
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#18213E
secondary
#74673D
accent
#B654D4
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #18213E

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

Preview Lab → · Contrast checker → · Palette generator →

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