#12215A#12215A

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

Color values

HEX#12215A
RGBrgb(18, 33, 90)
HSLhsl(228, 67%, 21%)
HSVhsv(228, 80%, 35%)
CMYKcmyk(80%, 63.3%, 0%, 64.7%)
CIE-LABlab(15.24, 16.71, -36.09)
CIE-LCHlch(15.24, 39.77, 294.84°)
OKLaboklab(27.57% -0.0043 -0.1042)
OKLCHoklch(27.57% 0.104 267.7)
XYZxyz(2.6381, 1.9542, 9.9090)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12215A #5A4B12
analogous
#12455A #12215A #27125A
triadic
#12215A #5A1221 #215A12
tetradic
#12215A #5A1245 #5A4B12 #125A27
square
#12215A #5A1245 #5A4B12 #125A27
split-complementary
#12215A #5A2712 #455A12
monochromatic
#05091A #080E27 #12215A #1C348D #2646C0

Accessibility & contrast

On white

15.10
#12215A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12215A
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12215A#FFFFFF#000000##FFFFFF
##12215A1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12215a;
/* rgb */ color: rgb(18, 33, 90);
/* oklch */ color: oklch(27.6% 0.104 267.7);
Tailwind
colors: {
  custom: {
    50: '#5c5b89',
    500: '#12215a',
    950: '#000000',
  },
}
SCSS
$custom: #12215a;
$custom-light: #5c5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#12215a",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 90
  },
  "hsl": {
    "h": 227.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27569,
    "c": 0.10427,
    "h": 267.7
  },
  "luminance": 0.01954
}

Semantic roles & 50–950 ramp

primary
#12215A
secondary
#937F35
accent
#C63EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #12215A

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

Preview Lab → · Contrast checker → · Palette generator →

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