#12226A#12226A

#12226A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.4% C 0.127 H 267.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#12226A
RGBrgb(18, 34, 106)
HSLhsl(229, 71%, 24%)
HSVhsv(229, 83%, 42%)
CMYKcmyk(83%, 67.9%, 0%, 58.4%)
CIE-LABlab(17.05, 22.64, -43.72)
CIE-LCHlch(17.05, 49.23, 297.38°)
OKLaboklab(29.38% -0.0051 -0.1265)
OKLCHoklch(29.38% 0.127 267.7)
XYZxyz(3.4221, 2.3129, 13.8989)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12226A #6A5A12
analogous
#124E6A #12226A #2E126A
triadic
#12226A #6A1222 #226A12
tetradic
#12226A #6A124E #6A5A12 #126A2E
square
#12226A #6A124E #6A5A12 #126A2E
split-complementary
#12226A #6A2E12 #4E6A12
monochromatic
#04081A #091136 #12226A #1B339E #2444D3

Accessibility & contrast

On white

14.36
#12226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#12226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12226A
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12226A#FFFFFF#000000##FFFFFF
##12226A1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#003542
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12226a;
/* rgb */ color: rgb(18, 34, 106);
/* oklch */ color: oklch(29.4% 0.127 267.7);
Tailwind
colors: {
  custom: {
    50: '#615d95',
    500: '#12226a',
    950: '#000000',
  },
}
SCSS
$custom: #12226a;
$custom-light: #615d95;
$custom-dark: #000000;
JSON
{
  "hex": "#12226a",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 229.091,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29376,
    "c": 0.12662,
    "h": 267.7
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#12226A
secondary
#A28E36
accent
#CD3AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #12226A

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

Preview Lab → · Contrast checker → · Palette generator →

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