#2228A9#2228A9

#2228A9 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.198 H 270.2°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2228A9
RGBrgb(34, 40, 169)
HSLhsl(237, 67%, 40%)
HSVhsv(237, 80%, 66%)
CMYKcmyk(79.9%, 76.3%, 0%, 33.7%)
CIE-LABlab(25.93, 43.56, -68.51)
CIE-LCHlch(25.93, 81.19, 302.45°)
OKLaboklab(37.99% 0.0008 -0.1984)
OKLCHoklch(37.99% 0.198 270.2)
XYZxyz(8.5775, 4.7213, 37.9877)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2228A9 #A9A322
analogous
#226CA9 #2228A9 #5F22A9
triadic
#2228A9 #A92228 #28A922
tetradic
#2228A9 #A9226C #A9A322 #22A95F
square
#2228A9 #A9226C #A9A322 #22A95F
split-complementary
#2228A9 #A95F22 #6CA922
monochromatic
#0D1043 #181C76 #2228A9 #323AD6 #656BE0

Accessibility & contrast

On white

10.80
#2228A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2228A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2228A9
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2228A9#FFFFFF#000000##FFFFFF
##2228A91.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2228a9;
/* rgb */ color: rgb(34, 40, 169);
/* oklch */ color: oklch(38.0% 0.198 270.2);
Tailwind
colors: {
  custom: {
    50: '#7664c4',
    500: '#2228a9',
    950: '#000000',
  },
}
SCSS
$custom: #2228a9;
$custom-light: #7664c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2228a9",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 237.333,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37986,
    "c": 0.19843,
    "h": 270.2
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#2228A9
secondary
#C5C161
accent
#E23EE9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2228A9

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

Preview Lab → · Contrast checker → · Palette generator →

#2228A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva