#12215B#12215B

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

Color values

HEX#12215B
RGBrgb(18, 33, 91)
HSLhsl(228, 67%, 21%)
HSVhsv(228, 80%, 36%)
CMYKcmyk(80.2%, 63.7%, 0%, 64.3%)
CIE-LABlab(15.34, 17.13, -36.61)
CIE-LCHlch(15.34, 40.42, 295.08°)
OKLaboklab(27.67% -0.0042 -0.1057)
OKLCHoklch(27.67% 0.106 267.7)
XYZxyz(2.6810, 1.9714, 10.1347)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12215B #5B4C12
analogous
#12465B #12215B #28125B
triadic
#12215B #5B1221 #215B12
tetradic
#12215B #5B1246 #5B4C12 #125B28
square
#12215B #5B1246 #5B4C12 #125B28
split-complementary
#12215B #5B2812 #465B12
monochromatic
#05091A #080E28 #12215B #1C348E #2646C1

Accessibility & contrast

On white

15.06
#12215B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#12215B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12215B
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12215B#FFFFFF#000000##FFFFFF
##12215B1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#00303A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12215b;
/* rgb */ color: rgb(18, 33, 91);
/* oklch */ color: oklch(27.7% 0.106 267.7);
Tailwind
colors: {
  custom: {
    50: '#5d5b8a',
    500: '#12215b',
    950: '#000000',
  },
}
SCSS
$custom: #12215b;
$custom-light: #5d5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12215b",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 91
  },
  "hsl": {
    "h": 227.671,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27665,
    "c": 0.10579,
    "h": 267.7
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12215B

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

Preview Lab → · Contrast checker → · Palette generator →

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