#2229A1#2229A1

#2229A1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.188 H 270.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2229A1
RGBrgb(34, 41, 161)
HSLhsl(237, 65%, 38%)
HSVhsv(237, 79%, 63%)
CMYKcmyk(78.9%, 74.5%, 0%, 36.9%)
CIE-LABlab(25.25, 40.23, -64.78)
CIE-LCHlch(25.25, 76.25, 301.84°)
OKLaboklab(37.25% 0.0017 -0.1876)
OKLCHoklch(37.25% 0.188 270.5)
XYZxyz(7.8835, 4.4983, 34.1641)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2229A1 #A19A22
analogous
#2268A1 #2229A1 #5A22A1
triadic
#2229A1 #A12229 #29A122
tetradic
#2229A1 #A12268 #A19A22 #22A15A
square
#2229A1 #A12268 #A19A22 #22A15A
split-complementary
#2229A1 #A15A22 #68A122
monochromatic
#0D0F3C #171C6E #2229A1 #2D37D3 #6067DD

Accessibility & contrast

On white

11.05
#2229A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2229A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2229A1
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2229A1#FFFFFF#000000##FFFFFF
##2229A11.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2229a1;
/* rgb */ color: rgb(34, 41, 161);
/* oklch */ color: oklch(37.3% 0.188 270.5);
Tailwind
colors: {
  custom: {
    50: '#7464be',
    500: '#2229a1',
    950: '#000000',
  },
}
SCSS
$custom: #2229a1;
$custom-light: #7464be;
$custom-dark: #000000;
JSON
{
  "hex": "#2229a1",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 161
  },
  "hsl": {
    "h": 236.693,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37251,
    "c": 0.1876,
    "h": 270.5
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2229A1

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

Preview Lab → · Contrast checker → · Palette generator →

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