#2226A7#2226A7

#2226A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.198 H 270.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2226A7
RGBrgb(34, 38, 167)
HSLhsl(238, 66%, 39%)
HSVhsv(238, 80%, 65%)
CMYKcmyk(79.6%, 77.2%, 0%, 34.5%)
CIE-LABlab(25.31, 44.01, -68.33)
CIE-LCHlch(25.31, 81.27, 302.78°)
OKLaboklab(37.48% 0.0018 -0.1979)
OKLCHoklch(37.48% 0.198 270.5)
XYZxyz(8.3255, 4.5154, 36.9845)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226A7 #A7A322
analogous
#2269A7 #2226A7 #6022A7
triadic
#2226A7 #A72226 #26A722
tetradic
#2226A7 #A72269 #A7A322 #22A760
square
#2226A7 #A72269 #A7A322 #22A760
split-complementary
#2226A7 #A76022 #69A722
monochromatic
#0D0F41 #181A74 #2226A7 #3136D5 #6468DF

Accessibility & contrast

On white

11.03
#2226A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2226A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2226A7
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226A7#FFFFFF#000000##FFFFFF
##2226A71.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2226a7;
/* rgb */ color: rgb(34, 38, 167);
/* oklch */ color: oklch(37.5% 0.198 270.5);
Tailwind
colors: {
  custom: {
    50: '#7662c2',
    500: '#2226a7',
    950: '#000000',
  },
}
SCSS
$custom: #2226a7;
$custom-light: #7662c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2226a7",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 238.195,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37483,
    "c": 0.19789,
    "h": 270.5
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#2226A7
secondary
#C5C260
accent
#E43FE9
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #2226A7

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

Preview Lab → · Contrast checker → · Palette generator →

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