#12225F#12225F

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

Color values

HEX#12225F
RGBrgb(18, 34, 95)
HSLhsl(228, 68%, 22%)
HSVhsv(228, 81%, 37%)
CMYKcmyk(81.1%, 64.2%, 0%, 62.7%)
CIE-LABlab(16.00, 18.08, -38.20)
CIE-LCHlch(16.00, 42.26, 295.33°)
OKLaboklab(28.27% -0.005 -0.1103)
OKLCHoklch(28.27% 0.11 267.4)
XYZxyz(2.8863, 2.0986, 11.0772)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12225F #5F4F12
analogous
#12495F #12225F #28125F
triadic
#12225F #5F1222 #225F12
tetradic
#12225F #5F1249 #5F4F12 #125F28
square
#12225F #5F1249 #5F4F12 #125F28
split-complementary
#12225F #5F2812 #495F12
monochromatic
#05091A #08102C #12225F #1C3492 #2547C6

Accessibility & contrast

On white

14.79
#12225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12225F
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12225F#FFFFFF#000000##FFFFFF
##12225F1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12225f;
/* rgb */ color: rgb(18, 34, 95);
/* oklch */ color: oklch(28.3% 0.110 267.4);
Tailwind
colors: {
  custom: {
    50: '#5e5c8d',
    500: '#12225f',
    950: '#000000',
  },
}
SCSS
$custom: #12225f;
$custom-light: #5e5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#12225f",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 227.532,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28271,
    "c": 0.11046,
    "h": 267.4
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#12225F
secondary
#978336
accent
#C73DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12225F

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

Preview Lab → · Contrast checker → · Palette generator →

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