#12225E#12225E

#12225E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.109 H 267.4°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#12225E
RGBrgb(18, 34, 94)
HSLhsl(227, 68%, 22%)
HSVhsv(227, 81%, 37%)
CMYKcmyk(80.9%, 63.8%, 0%, 63.1%)
CIE-LABlab(15.90, 17.66, -37.69)
CIE-LCHlch(15.90, 41.62, 295.11°)
OKLaboklab(28.17% -0.005 -0.1088)
OKLCHoklch(28.17% 0.109 267.4)
XYZxyz(2.8412, 2.0805, 10.8393)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12225E #5E4E12
analogous
#12485E #12225E #28125E
triadic
#12225E #5E1222 #225E12
tetradic
#12225E #5E1248 #5E4E12 #125E28
square
#12225E #5E1248 #5E4E12 #125E28
split-complementary
#12225E #5E2812 #485E12
monochromatic
#05091A #080F2B #12225E #1C3591 #2647C5

Accessibility & contrast

On white

14.83
#12225E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#12225E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12225E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12225E#FFFFFF#000000##FFFFFF
##12225E1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12225e;
/* rgb */ color: rgb(18, 34, 94);
/* oklch */ color: oklch(28.2% 0.109 267.4);
Tailwind
colors: {
  custom: {
    50: '#5d5c8c',
    500: '#12225e',
    950: '#000000',
  },
}
SCSS
$custom: #12225e;
$custom-light: #5d5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#12225e",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 94
  },
  "hsl": {
    "h": 227.368,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28174,
    "c": 0.10895,
    "h": 267.4
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#12225E
secondary
#968235
accent
#C63DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12225E

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

Preview Lab → · Contrast checker → · Palette generator →

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