#2228A1#2228A1

#2228A1 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.189 H 270.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2228A1
RGBrgb(34, 40, 161)
HSLhsl(237, 65%, 38%)
HSVhsv(237, 79%, 63%)
CMYKcmyk(78.9%, 75.2%, 0%, 36.9%)
CIE-LABlab(25.04, 40.82, -65.12)
CIE-LCHlch(25.04, 76.86, 302.08°)
OKLaboklab(37.1% 0.0021 -0.1886)
OKLCHoklch(37.1% 0.189 270.6)
XYZxyz(7.8493, 4.4300, 34.1527)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2228A1 #A19B22
analogous
#2267A1 #2228A1 #5B22A1
triadic
#2228A1 #A12228 #28A122
tetradic
#2228A1 #A12267 #A19B22 #22A15B
square
#2228A1 #A12267 #A19B22 #22A15B
split-complementary
#2228A1 #A15B22 #67A122
monochromatic
#0D0F3C #171B6E #2228A1 #2D35D3 #6066DD

Accessibility & contrast

On white

11.13
#2228A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2228A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2228A1
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2228A1#FFFFFF#000000##FFFFFF
##2228A11.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2228a1;
/* rgb */ color: rgb(34, 40, 161);
/* oklch */ color: oklch(37.1% 0.189 270.6);
Tailwind
colors: {
  custom: {
    50: '#7463be',
    500: '#2228a1',
    950: '#000000',
  },
}
SCSS
$custom: #2228a1;
$custom-light: #7463be;
$custom-dark: #000000;
JSON
{
  "hex": "#2228a1",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 237.165,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37101,
    "c": 0.1886,
    "h": 270.6
  },
  "luminance": 0.04431
}

Semantic roles & 50–950 ramp

primary
#2228A1
secondary
#C2BD5D
accent
#E040E8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2228A1

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

Preview Lab → · Contrast checker → · Palette generator →

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