#12225A#12225A

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

Color values

HEX#12225A
RGBrgb(18, 34, 90)
HSLhsl(227, 67%, 21%)
HSVhsv(227, 80%, 35%)
CMYKcmyk(80%, 62.2%, 0%, 64.7%)
CIE-LABlab(15.54, 15.96, -35.61)
CIE-LCHlch(15.54, 39.02, 294.15°)
OKLaboklab(27.79% -0.0051 -0.1027)
OKLCHoklch(27.79% 0.103 267.2)
XYZxyz(2.6663, 2.0106, 9.9184)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12225A #5A4A12
analogous
#12465A #12225A #26125A
triadic
#12225A #5A1222 #225A12
tetradic
#12225A #5A1246 #5A4A12 #125A26
square
#12225A #5A1246 #5A4A12 #125A26
split-complementary
#12225A #5A2612 #465A12
monochromatic
#050A1A #080F27 #12225A #1C358D #2649C0

Accessibility & contrast

On white

14.98
#12225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#12225A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12225A
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12225A#FFFFFF#000000##FFFFFF
##12225A1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12225a;
/* rgb */ color: rgb(18, 34, 90);
/* oklch */ color: oklch(27.8% 0.103 267.2);
Tailwind
colors: {
  custom: {
    50: '#5c5c89',
    500: '#12225a',
    950: '#000000',
  },
}
SCSS
$custom: #12225a;
$custom-light: #5c5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#12225a",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 226.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27791,
    "c": 0.10287,
    "h": 267.2
  },
  "luminance": 0.02011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12225A

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

Preview Lab → · Contrast checker → · Palette generator →

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