#12226F#12226F

#12226F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.134 H 267.7°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#12226F
RGBrgb(18, 34, 111)
HSLhsl(230, 72%, 25%)
HSVhsv(230, 84%, 44%)
CMYKcmyk(83.8%, 69.4%, 0%, 56.5%)
CIE-LABlab(17.55, 24.68, -46.15)
CIE-LCHlch(17.55, 52.33, 298.13°)
OKLaboklab(29.9% -0.0054 -0.1336)
OKLCHoklch(29.9% 0.134 267.7)
XYZxyz(3.6897, 2.4199, 15.3085)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12226F #6F5F12
analogous
#12516F #12226F #30126F
triadic
#12226F #6F1222 #226F12
tetradic
#12226F #6F1251 #6F5F12 #126F30
square
#12226F #6F1251 #6F5F12 #126F30
split-complementary
#12226F #6F3012 #516F12
monochromatic
#04081A #09123A #12226F #1B32A4 #2342D8

Accessibility & contrast

On white

14.15
#12226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#12226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12226F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12226F#FFFFFF#000000##FFFFFF
##12226F1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12226f;
/* rgb */ color: rgb(18, 34, 111);
/* oklch */ color: oklch(29.9% 0.134 267.7);
Tailwind
colors: {
  custom: {
    50: '#625d99',
    500: '#12226f',
    950: '#000000',
  },
}
SCSS
$custom: #12226f;
$custom-light: #625d99;
$custom-dark: #000000;
JSON
{
  "hex": "#12226f",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 229.677,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29898,
    "c": 0.13374,
    "h": 267.7
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#12226F
secondary
#A69337
accent
#D039EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #12226F

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

Preview Lab → · Contrast checker → · Palette generator →

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