#12215F#12215F

#12215F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.1% C 0.112 H 267.8°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#12215F
RGBrgb(18, 33, 95)
HSLhsl(228, 68%, 22%)
HSVhsv(228, 81%, 37%)
CMYKcmyk(81.1%, 65.3%, 0%, 62.7%)
CIE-LABlab(15.71, 18.82, -38.67)
CIE-LCHlch(15.71, 43.01, 295.95°)
OKLaboklab(28.06% -0.0042 -0.1117)
OKLCHoklch(28.06% 0.112 267.8)
XYZxyz(2.8582, 2.0422, 11.0678)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12215F #5F5012
analogous
#12485F #12215F #2A125F
triadic
#12215F #5F1221 #215F12
tetradic
#12215F #5F1248 #5F5012 #125F2A
square
#12215F #5F1248 #5F5012 #125F2A
split-complementary
#12215F #5F2A12 #485F12
monochromatic
#05091A #080F2C #12215F #1C3392 #2545C6

Accessibility & contrast

On white

14.91
#12215F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12215F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12215F
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12215F#FFFFFF#000000##FFFFFF
##12215F1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12215f;
/* rgb */ color: rgb(18, 33, 95);
/* oklch */ color: oklch(28.1% 0.112 267.8);
Tailwind
colors: {
  custom: {
    50: '#5e5c8d',
    500: '#12215f',
    950: '#000000',
  },
}
SCSS
$custom: #12215f;
$custom-light: #5e5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#12215f",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 95
  },
  "hsl": {
    "h": 228.312,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28056,
    "c": 0.11183,
    "h": 267.8
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#12215F
secondary
#978436
accent
#C93DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12215F

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

Preview Lab → · Contrast checker → · Palette generator →

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