#2226AD#2226AD

#2226AD is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.205 H 270.2°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2226AD
RGBrgb(34, 38, 173)
HSLhsl(238, 67%, 41%)
HSVhsv(238, 80%, 68%)
CMYKcmyk(80.3%, 78%, 0%, 32.2%)
CIE-LABlab(25.99, 46.01, -70.82)
CIE-LCHlch(25.99, 84.45, 303.01°)
OKLaboklab(38.16% 0.0007 -0.2051)
OKLCHoklch(38.16% 0.205 270.2)
XYZxyz(8.8931, 4.7424, 39.9737)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226AD #ADA922
analogous
#226CAD #2226AD #6322AD
triadic
#2226AD #AD2226 #26AD22
tetradic
#2226AD #AD226C #ADA922 #22AD63
square
#2226AD #AD226C #ADA922 #22AD63
split-complementary
#2226AD #AD6322 #6CAD22
monochromatic
#0E1047 #181B7A #2226AD #353AD7 #686CE1

Accessibility & contrast

On white

10.78
#2226AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2226AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2226AD
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226AD#FFFFFF#000000##FFFFFF
##2226AD1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B1
Deuteranopia (green-blind)
#0036AB
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2226ad;
/* rgb */ color: rgb(34, 38, 173);
/* oklch */ color: oklch(38.2% 0.205 270.2);
Tailwind
colors: {
  custom: {
    50: '#7863c7',
    500: '#2226ad',
    950: '#000000',
  },
}
SCSS
$custom: #2226ad;
$custom-light: #7863c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2226ad",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 238.273,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38162,
    "c": 0.2051,
    "h": 270.2
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#2226AD
secondary
#C7C464
accent
#E53EEA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2226AD

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

Preview Lab → · Contrast checker → · Palette generator →

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