#2226A5#2226A5

#2226A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.195 H 270.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2226A5
RGBrgb(34, 38, 165)
HSLhsl(238, 66%, 39%)
HSVhsv(238, 79%, 65%)
CMYKcmyk(79.4%, 77%, 0%, 35.3%)
CIE-LABlab(25.08, 43.33, -67.49)
CIE-LCHlch(25.08, 80.20, 302.70°)
OKLaboklab(37.26% 0.0021 -0.1955)
OKLCHoklch(37.26% 0.195 270.6)
XYZxyz(8.1420, 4.4420, 36.0183)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226A5 #A5A122
analogous
#2268A5 #2226A5 #6022A5
triadic
#2226A5 #A52226 #26A522
tetradic
#2226A5 #A52268 #A5A122 #22A560
square
#2226A5 #A52268 #A5A122 #22A560
split-complementary
#2226A5 #A56022 #68A522
monochromatic
#0D0F40 #181A72 #2226A5 #3035D4 #6366DF

Accessibility & contrast

On white

11.12
#2226A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2226A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2226A5
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226A5#FFFFFF#000000##FFFFFF
##2226A51.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2226a5;
/* rgb */ color: rgb(34, 38, 165);
/* oklch */ color: oklch(37.3% 0.195 270.6);
Tailwind
colors: {
  custom: {
    50: '#7662c1',
    500: '#2226a5',
    950: '#000000',
  },
}
SCSS
$custom: #2226a5;
$custom-light: #7662c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2226a5",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 238.168,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37258,
    "c": 0.19546,
    "h": 270.6
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#2226A5
secondary
#C4C15F
accent
#E43FE9
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2226A5

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

Preview Lab → · Contrast checker → · Palette generator →

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