#12215E#12215E

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

Color values

HEX#12215E
RGBrgb(18, 33, 94)
HSLhsl(228, 68%, 22%)
HSVhsv(228, 81%, 37%)
CMYKcmyk(80.9%, 64.9%, 0%, 63.1%)
CIE-LABlab(15.61, 18.39, -38.16)
CIE-LCHlch(15.61, 42.36, 295.74°)
OKLaboklab(27.96% -0.0042 -0.1102)
OKLCHoklch(27.96% 0.11 267.8)
XYZxyz(2.8130, 2.0242, 10.8300)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12215E #5E4F12
analogous
#12475E #12215E #29125E
triadic
#12215E #5E1221 #215E12
tetradic
#12215E #5E1247 #5E4F12 #125E29
square
#12215E #5E1247 #5E4F12 #125E29
split-complementary
#12215E #5E2912 #475E12
monochromatic
#05091A #080F2B #12215E #1C3391 #2645C5

Accessibility & contrast

On white

14.95
#12215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#12215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12215E
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12215E#FFFFFF#000000##FFFFFF
##12215E1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12215e;
/* rgb */ color: rgb(18, 33, 94);
/* oklch */ color: oklch(28.0% 0.110 267.8);
Tailwind
colors: {
  custom: {
    50: '#5d5b8c',
    500: '#12215e',
    950: '#000000',
  },
}
SCSS
$custom: #12215e;
$custom-light: #5d5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#12215e",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 228.158,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27958,
    "c": 0.11033,
    "h": 267.8
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#12215E
secondary
#968335
accent
#C83DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12215E

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

Preview Lab → · Contrast checker → · Palette generator →

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