#2226A8#2226A8

#2226A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.199 H 270.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2226A8
RGBrgb(34, 38, 168)
HSLhsl(238, 66%, 40%)
HSVhsv(238, 80%, 66%)
CMYKcmyk(79.8%, 77.4%, 0%, 34.1%)
CIE-LABlab(25.42, 44.34, -68.74)
CIE-LCHlch(25.42, 81.81, 302.82°)
OKLaboklab(37.6% 0.0016 -0.1991)
OKLCHoklch(37.6% 0.199 270.5)
XYZxyz(8.4183, 4.5525, 37.4732)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226A8 #A8A422
analogous
#2269A8 #2226A8 #6122A8
triadic
#2226A8 #A82226 #26A822
tetradic
#2226A8 #A82269 #A8A422 #22A861
square
#2226A8 #A82269 #A8A422 #22A861
split-complementary
#2226A8 #A86122 #69A822
monochromatic
#0D0F42 #181A75 #2226A8 #3237D5 #6568E0

Accessibility & contrast

On white

10.99
#2226A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2226A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2226A8
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226A8#FFFFFF#000000##FFFFFF
##2226A81.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2226a8;
/* rgb */ color: rgb(34, 38, 168);
/* oklch */ color: oklch(37.6% 0.199 270.5);
Tailwind
colors: {
  custom: {
    50: '#7662c3',
    500: '#2226a8',
    950: '#000000',
  },
}
SCSS
$custom: #2226a8;
$custom-light: #7662c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2226a8",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 238.209,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37596,
    "c": 0.1991,
    "h": 270.5
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#2226A8
secondary
#C5C261
accent
#E43FE9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #2226A8

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

Preview Lab → · Contrast checker → · Palette generator →

#2226A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva