#12215D#12215D

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

Color values

HEX#12215D
RGBrgb(18, 33, 93)
HSLhsl(228, 68%, 22%)
HSVhsv(228, 81%, 36%)
CMYKcmyk(80.6%, 64.5%, 0%, 63.5%)
CIE-LABlab(15.52, 17.98, -37.65)
CIE-LCHlch(15.52, 41.72, 295.52°)
OKLaboklab(27.86% -0.0042 -0.1087)
OKLCHoklch(27.86% 0.109 267.8)
XYZxyz(2.7684, 2.0063, 10.5952)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12215D #5D4E12
analogous
#12475D #12215D #29125D
triadic
#12215D #5D1221 #215D12
tetradic
#12215D #5D1247 #5D4E12 #125D29
square
#12215D #5D1247 #5D4E12 #125D29
split-complementary
#12215D #5D2912 #475D12
monochromatic
#05091A #080F2A #12215D #1C3390 #2645C4

Accessibility & contrast

On white

14.99
#12215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12215D
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12215D#FFFFFF#000000##FFFFFF
##12215D1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12215d;
/* rgb */ color: rgb(18, 33, 93);
/* oklch */ color: oklch(27.9% 0.109 267.8);
Tailwind
colors: {
  custom: {
    50: '#5d5b8b',
    500: '#12215d',
    950: '#000000',
  },
}
SCSS
$custom: #12215d;
$custom-light: #5d5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12215d",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 228,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2786,
    "c": 0.10882,
    "h": 267.8
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#12215D
secondary
#958235
accent
#C83DEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12215D

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

Preview Lab → · Contrast checker → · Palette generator →

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