#18215F#18215F

#18215F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.110 H 271.2°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#18215F
RGBrgb(24, 33, 95)
HSLhsl(232, 60%, 23%)
HSVhsv(232, 75%, 37%)
CMYKcmyk(74.7%, 65.3%, 0%, 62.7%)
CIE-LABlab(16.04, 19.64, -38.11)
CIE-LCHlch(16.04, 42.87, 297.27°)
OKLaboklab(28.4% 0.0023 -0.11)
OKLCHoklch(28.4% 0.11 271.2)
XYZxyz(2.9854, 2.1078, 11.0738)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18215F #5F5618
analogous
#18445F #18215F #32185F
triadic
#18215F #5F1821 #215F18
tetradic
#18215F #5F1844 #5F5618 #185F32
square
#18215F #5F1844 #5F5618 #185F32
split-complementary
#18215F #5F3218 #445F18
monochromatic
#060818 #0C102E #18215F #243290 #3143C1

Accessibility & contrast

On white

14.77
#18215F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18215F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18215F
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18215F#FFFFFF#000000##FFFFFF
##18215F1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18215f;
/* rgb */ color: rgb(24, 33, 95);
/* oklch */ color: oklch(28.4% 0.110 271.2);
Tailwind
colors: {
  custom: {
    50: '#605c8d',
    500: '#18215f',
    950: '#000000',
  },
}
SCSS
$custom: #18215f;
$custom-light: #605c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#18215f",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 95
  },
  "hsl": {
    "h": 232.394,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28397,
    "c": 0.10998,
    "h": 271.2
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#18215F
secondary
#958A3D
accent
#CF45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #18215F

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

Preview Lab → · Contrast checker → · Palette generator →

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