#18214E#18214E

#18214E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.083 H 271.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#18214E
RGBrgb(24, 33, 78)
HSLhsl(230, 53%, 20%)
HSVhsv(230, 69%, 31%)
CMYKcmyk(69.2%, 57.7%, 0%, 69.4%)
CIE-LABlab(14.58, 12.72, -29.04)
CIE-LCHlch(14.58, 31.70, 293.65°)
OKLaboklab(26.84% 0.0018 -0.0833)
OKLCHoklch(26.84% 0.083 271.2)
XYZxyz(2.2952, 1.8318, 7.4389)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18214E #4E4518
analogous
#183C4E #18214E #2A184E
triadic
#18214E #4E1821 #214E18
tetradic
#18214E #4E183C #4E4518 #184E2A
square
#18214E #4E183C #4E4518 #184E2A
split-complementary
#18214E #4E2A18 #3C4E18
monochromatic
#070A17 #0A0D1F #18214E #26357D #3549AC

Accessibility & contrast

On white

15.37
#18214E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#18214E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18214E
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18214E#FFFFFF#000000##FFFFFF
##18214E1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18214e;
/* rgb */ color: rgb(24, 33, 78);
/* oklch */ color: oklch(26.8% 0.083 271.2);
Tailwind
colors: {
  custom: {
    50: '#5c5b80',
    500: '#18214e',
    950: '#000000',
  },
}
SCSS
$custom: #18214e;
$custom-light: #5c5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#18214e",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 78
  },
  "hsl": {
    "h": 230,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.26842,
    "c": 0.08331,
    "h": 271.2
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#18214E
secondary
#85793D
accent
#C44BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18214E

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

Preview Lab → · Contrast checker → · Palette generator →

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