#2226A6#2226A6

#2226A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.197 H 270.6°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2226A6
RGBrgb(34, 38, 166)
HSLhsl(238, 66%, 39%)
HSVhsv(238, 80%, 65%)
CMYKcmyk(79.5%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.19, 43.67, -67.91)
CIE-LCHlch(25.19, 80.74, 302.74°)
OKLaboklab(37.37% 0.002 -0.1967)
OKLCHoklch(37.37% 0.197 270.6)
XYZxyz(8.2334, 4.4786, 36.4995)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226A6 #A6A222
analogous
#2268A6 #2226A6 #6022A6
triadic
#2226A6 #A62226 #26A622
tetradic
#2226A6 #A62268 #A6A222 #22A660
square
#2226A6 #A62268 #A6A222 #22A660
split-complementary
#2226A6 #A66022 #68A622
monochromatic
#0D0F40 #181A73 #2226A6 #3035D5 #6367DF

Accessibility & contrast

On white

11.08
#2226A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2226A6
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226A6#FFFFFF#000000##FFFFFF
##2226A61.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2226a6;
/* rgb */ color: rgb(34, 38, 166);
/* oklch */ color: oklch(37.4% 0.197 270.6);
Tailwind
colors: {
  custom: {
    50: '#7662c2',
    500: '#2226a6',
    950: '#000000',
  },
}
SCSS
$custom: #2226a6;
$custom-light: #7662c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2226a6",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 238.182,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3737,
    "c": 0.19667,
    "h": 270.6
  },
  "luminance": 0.04479
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2226A6

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

Preview Lab → · Contrast checker → · Palette generator →

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