#2228A5#2228A5

#2228A5 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.194 H 270.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2228A5
RGBrgb(34, 40, 165)
HSLhsl(237, 66%, 39%)
HSVhsv(237, 79%, 65%)
CMYKcmyk(79.4%, 75.8%, 0%, 35.3%)
CIE-LABlab(25.48, 42.20, -66.83)
CIE-LCHlch(25.48, 79.03, 302.27°)
OKLaboklab(37.54% 0.0014 -0.1935)
OKLCHoklch(37.54% 0.194 270.4)
XYZxyz(8.2077, 4.5734, 36.0402)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2228A5 #A59F22
analogous
#226AA5 #2228A5 #5E22A5
triadic
#2228A5 #A52228 #28A522
tetradic
#2228A5 #A5226A #A59F22 #22A55E
square
#2228A5 #A5226A #A59F22 #22A55E
split-complementary
#2228A5 #A55E22 #6AA522
monochromatic
#0D0F40 #181C72 #2228A5 #3037D4 #6368DF

Accessibility & contrast

On white

10.97
#2228A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2228A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2228A5
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2228A5#FFFFFF#000000##FFFFFF
##2228A51.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0036A3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2228a5;
/* rgb */ color: rgb(34, 40, 165);
/* oklch */ color: oklch(37.5% 0.194 270.4);
Tailwind
colors: {
  custom: {
    50: '#7563c1',
    500: '#2228a5',
    950: '#000000',
  },
}
SCSS
$custom: #2228a5;
$custom-light: #7563c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2228a5",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 237.252,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.19355,
    "h": 270.4
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#2228A5
secondary
#C4BF5F
accent
#E13FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2228A5

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

Preview Lab → · Contrast checker → · Palette generator →

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