#12227E#12227E

#12227E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.154 H 267.5°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#12227E
RGBrgb(18, 34, 126)
HSLhsl(231, 75%, 28%)
HSVhsv(231, 86%, 49%)
CMYKcmyk(85.7%, 73%, 0%, 50.6%)
CIE-LABlab(19.13, 30.59, -53.17)
CIE-LCHlch(19.13, 61.34, 299.91°)
OKLaboklab(31.53% -0.0066 -0.1541)
OKLCHoklch(31.53% 0.154 267.5)
XYZxyz(4.5861, 2.7785, 20.0292)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12227E #7E6E12
analogous
#12587E #12227E #38127E
triadic
#12227E #7E1222 #227E12
tetradic
#12227E #7E1258 #7E6E12 #127E38
square
#12227E #7E1258 #7E6E12 #127E38
split-complementary
#12227E #7E3812 #587E12
monochromatic
#04071B #0A1448 #12227E #1A30B4 #2A45E1

Accessibility & contrast

On white

13.50
#12227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#12227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12227E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12227E#FFFFFF#000000##FFFFFF
##12227E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12227e;
/* rgb */ color: rgb(18, 34, 126);
/* oklch */ color: oklch(31.5% 0.154 267.5);
Tailwind
colors: {
  custom: {
    50: '#675da4',
    500: '#12227e',
    950: '#000000',
  },
}
SCSS
$custom: #12227e;
$custom-light: #675da4;
$custom-dark: #000000;
JSON
{
  "hex": "#12227e",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 231.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31525,
    "c": 0.15424,
    "h": 267.5
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#12227E
secondary
#B4A138
accent
#D636F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #12227E

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

Preview Lab → · Contrast checker → · Palette generator →

#12227E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva