#12225B#12225B

#12225B is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.104 H 267.2°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#12225B
RGBrgb(18, 34, 91)
HSLhsl(227, 67%, 21%)
HSVhsv(227, 80%, 36%)
CMYKcmyk(80.2%, 62.6%, 0%, 64.3%)
CIE-LABlab(15.63, 16.39, -36.13)
CIE-LCHlch(15.63, 39.67, 294.40°)
OKLaboklab(27.89% -0.0051 -0.1043)
OKLCHoklch(27.89% 0.104 267.2)
XYZxyz(2.7092, 2.0277, 10.1441)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12225B #5B4B12
analogous
#12475B #12225B #27125B
triadic
#12225B #5B1222 #225B12
tetradic
#12225B #5B1247 #5B4B12 #125B27
square
#12225B #5B1247 #5B4B12 #125B27
split-complementary
#12225B #5B2712 #475B12
monochromatic
#050A1A #080F28 #12225B #1C358E #2648C1

Accessibility & contrast

On white

14.94
#12225B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12225B
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12225B#FFFFFF#000000##FFFFFF
##12225B1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#00303A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12225b;
/* rgb */ color: rgb(18, 34, 91);
/* oklch */ color: oklch(27.9% 0.104 267.2);
Tailwind
colors: {
  custom: {
    50: '#5d5c8a',
    500: '#12225b',
    950: '#000000',
  },
}
SCSS
$custom: #12225b;
$custom-light: #5d5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12225b",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 91
  },
  "hsl": {
    "h": 226.849,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27886,
    "c": 0.10439,
    "h": 267.2
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#12225B
secondary
#937F35
accent
#C43EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12225B

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

Preview Lab → · Contrast checker → · Palette generator →

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