#12215C#12215C

#12215C is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.107 H 267.7°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#12215C
RGBrgb(18, 33, 92)
HSLhsl(228, 67%, 22%)
HSVhsv(228, 80%, 36%)
CMYKcmyk(80.4%, 64.1%, 0%, 63.9%)
CIE-LABlab(15.43, 17.55, -37.13)
CIE-LCHlch(15.43, 41.07, 295.31°)
OKLaboklab(27.76% -0.0042 -0.1072)
OKLCHoklch(27.76% 0.107 267.7)
XYZxyz(2.7244, 1.9887, 10.3634)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12215C #5C4D12
analogous
#12465C #12215C #28125C
triadic
#12215C #5C1221 #215C12
tetradic
#12215C #5C1246 #5C4D12 #125C28
square
#12215C #5C1246 #5C4D12 #125C28
split-complementary
#12215C #5C2812 #465C12
monochromatic
#05091A #080F29 #12215C #1C338F #2646C2

Accessibility & contrast

On white

15.02
#12215C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12215C
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12215C#FFFFFF#000000##FFFFFF
##12215C1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12215c;
/* rgb */ color: rgb(18, 33, 92);
/* oklch */ color: oklch(27.8% 0.107 267.7);
Tailwind
colors: {
  custom: {
    50: '#5d5b8b',
    500: '#12215c',
    950: '#000000',
  },
}
SCSS
$custom: #12215c;
$custom-light: #5d5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12215c",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 92
  },
  "hsl": {
    "h": 227.838,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27762,
    "c": 0.10731,
    "h": 267.7
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#12215C
secondary
#948135
accent
#C73EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12215C

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

Preview Lab → · Contrast checker → · Palette generator →

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