#12225D#12225D

#12225D is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.107 H 267.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#12225D
RGBrgb(18, 34, 93)
HSLhsl(227, 68%, 22%)
HSVhsv(227, 81%, 36%)
CMYKcmyk(80.6%, 63.4%, 0%, 63.5%)
CIE-LABlab(15.81, 17.24, -37.17)
CIE-LCHlch(15.81, 40.97, 294.88°)
OKLaboklab(28.08% -0.005 -0.1073)
OKLCHoklch(28.08% 0.107 267.3)
XYZxyz(2.7966, 2.0627, 10.6045)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12225D #5D4D12
analogous
#12485D #12225D #28125D
triadic
#12225D #5D1222 #225D12
tetradic
#12225D #5D1248 #5D4D12 #125D28
square
#12225D #5D1248 #5D4D12 #125D28
split-complementary
#12225D #5D2812 #485D12
monochromatic
#05091A #080F2A #12225D #1C3590 #2647C4

Accessibility & contrast

On white

14.87
#12225D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12225D
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12225D#FFFFFF#000000##FFFFFF
##12225D1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12225d;
/* rgb */ color: rgb(18, 34, 93);
/* oklch */ color: oklch(28.1% 0.107 267.3);
Tailwind
colors: {
  custom: {
    50: '#5d5c8b',
    500: '#12225d',
    950: '#000000',
  },
}
SCSS
$custom: #12225d;
$custom-light: #5d5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12225d",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 93
  },
  "hsl": {
    "h": 227.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28077,
    "c": 0.10745,
    "h": 267.3
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12225D

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

Preview Lab → · Contrast checker → · Palette generator →

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