#18215D#18215D

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

Color values

HEX#18215D
RGBrgb(24, 33, 93)
HSLhsl(232, 59%, 23%)
HSVhsv(232, 74%, 36%)
CMYKcmyk(74.2%, 64.5%, 0%, 63.5%)
CIE-LABlab(15.86, 18.83, -37.08)
CIE-LCHlch(15.86, 41.59, 296.93°)
OKLaboklab(28.2% 0.0023 -0.1069)
OKLCHoklch(28.2% 0.107 271.2)
XYZxyz(2.8957, 2.0719, 10.6011)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18215D #5D5418
analogous
#18435D #18215D #31185D
triadic
#18215D #5D1821 #215D18
tetradic
#18215D #5D1843 #5D5418 #185D31
square
#18215D #5D1843 #5D5418 #185D31
split-complementary
#18215D #5D3118 #435D18
monochromatic
#060918 #0B102C #18215D #25328E #3144BE

Accessibility & contrast

On white

14.85
#18215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18215D
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18215D#FFFFFF#000000##FFFFFF
##18215D1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18215d;
/* rgb */ color: rgb(24, 33, 93);
/* oklch */ color: oklch(28.2% 0.107 271.2);
Tailwind
colors: {
  custom: {
    50: '#5f5c8b',
    500: '#18215d',
    950: '#000000',
  },
}
SCSS
$custom: #18215d;
$custom-light: #5f5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18215d",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 232.174,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28204,
    "c": 0.10696,
    "h": 271.2
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#18215D
secondary
#93883D
accent
#CE46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18215D

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

Preview Lab → · Contrast checker → · Palette generator →

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