#12225C#12225C

#12225C is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.106 H 267.3°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#12225C
RGBrgb(18, 34, 92)
HSLhsl(227, 67%, 22%)
HSVhsv(227, 80%, 36%)
CMYKcmyk(80.4%, 63%, 0%, 63.9%)
CIE-LABlab(15.72, 16.81, -36.65)
CIE-LCHlch(15.72, 40.32, 294.64°)
OKLaboklab(27.98% -0.005 -0.1058)
OKLCHoklch(27.98% 0.106 267.3)
XYZxyz(2.7526, 2.0451, 10.3728)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12225C #5C4C12
analogous
#12475C #12225C #27125C
triadic
#12225C #5C1222 #225C12
tetradic
#12225C #5C1247 #5C4C12 #125C27
square
#12225C #5C1247 #5C4C12 #125C27
split-complementary
#12225C #5C2712 #475C12
monochromatic
#05091A #080F29 #12225C #1C358F #2648C2

Accessibility & contrast

On white

14.90
#12225C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12225C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12225C
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12225C#FFFFFF#000000##FFFFFF
##12225C1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12225c;
/* rgb */ color: rgb(18, 34, 92);
/* oklch */ color: oklch(28.0% 0.106 267.3);
Tailwind
colors: {
  custom: {
    50: '#5d5c8b',
    500: '#12225c',
    950: '#000000',
  },
}
SCSS
$custom: #12225c;
$custom-light: #5d5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12225c",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 92
  },
  "hsl": {
    "h": 227.027,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27981,
    "c": 0.10592,
    "h": 267.3
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#12225C
secondary
#948035
accent
#C53EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12225C

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

Preview Lab → · Contrast checker → · Palette generator →

#12225C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva