#12216F#12216F

#12216F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.7% C 0.135 H 267.9°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#12216F
RGBrgb(18, 33, 111)
HSLhsl(230, 72%, 25%)
HSVhsv(230, 84%, 44%)
CMYKcmyk(83.8%, 70.3%, 0%, 56.5%)
CIE-LABlab(17.29, 25.38, -46.58)
CIE-LCHlch(17.29, 53.04, 298.58°)
OKLaboklab(29.71% -0.0048 -0.1349)
OKLCHoklch(29.71% 0.135 267.9)
XYZxyz(3.6616, 2.3636, 15.2991)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12216F #6F6012
analogous
#124F6F #12216F #32126F
triadic
#12216F #6F1221 #216F12
tetradic
#12216F #6F124F #6F6012 #126F32
square
#12216F #6F124F #6F6012 #126F32
split-complementary
#12216F #6F3212 #4F6F12
monochromatic
#04081A #09113A #12216F #1B31A4 #2340D8

Accessibility & contrast

On white

14.26
#12216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#12216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12216F
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12216F#FFFFFF#000000##FFFFFF
##12216F1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12216f;
/* rgb */ color: rgb(18, 33, 111);
/* oklch */ color: oklch(29.7% 0.135 267.9);
Tailwind
colors: {
  custom: {
    50: '#625c99',
    500: '#12216f',
    950: '#000000',
  },
}
SCSS
$custom: #12216f;
$custom-light: #625c99;
$custom-dark: #000000;
JSON
{
  "hex": "#12216f",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 230.323,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29707,
    "c": 0.13498,
    "h": 267.9
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#12216F
secondary
#A69437
accent
#D139EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #12216F

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

Preview Lab → · Contrast checker → · Palette generator →

#12216F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva