#2228A7#2228A7

#2228A7 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.196 H 270.3°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2228A7
RGBrgb(34, 40, 167)
HSLhsl(237, 66%, 39%)
HSVhsv(237, 80%, 65%)
CMYKcmyk(79.6%, 76%, 0%, 34.5%)
CIE-LABlab(25.70, 42.88, -67.67)
CIE-LCHlch(25.70, 80.11, 302.36°)
OKLaboklab(37.76% 0.0011 -0.196)
OKLCHoklch(37.76% 0.196 270.3)
XYZxyz(8.3912, 4.6467, 37.0064)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2228A7 #A7A122
analogous
#226BA7 #2228A7 #5F22A7
triadic
#2228A7 #A72228 #28A722
tetradic
#2228A7 #A7226B #A7A122 #22A75F
square
#2228A7 #A7226B #A7A122 #22A75F
split-complementary
#2228A7 #A75F22 #6BA722
monochromatic
#0D1041 #181C74 #2228A7 #3139D5 #646ADF

Accessibility & contrast

On white

10.88
#2228A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2228A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2228A7
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2228A7#FFFFFF#000000##FFFFFF
##2228A71.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2228a7;
/* rgb */ color: rgb(34, 40, 167);
/* oklch */ color: oklch(37.8% 0.196 270.3);
Tailwind
colors: {
  custom: {
    50: '#7664c2',
    500: '#2228a7',
    950: '#000000',
  },
}
SCSS
$custom: #2228a7;
$custom-light: #7664c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2228a7",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 237.293,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37763,
    "c": 0.19599,
    "h": 270.3
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#2228A7
secondary
#C5C060
accent
#E13FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2228A7

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

Preview Lab → · Contrast checker → · Palette generator →

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