#2229A7#2229A7

#2229A7 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.195 H 270.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2229A7
RGBrgb(34, 41, 167)
HSLhsl(237, 66%, 39%)
HSVhsv(237, 80%, 65%)
CMYKcmyk(79.6%, 75.4%, 0%, 34.5%)
CIE-LABlab(25.91, 42.31, -67.33)
CIE-LCHlch(25.91, 79.52, 302.14°)
OKLaboklab(37.91% 0.0007 -0.195)
OKLCHoklch(37.91% 0.195 270.2)
XYZxyz(8.4253, 4.7150, 37.0178)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2229A7 #A7A022
analogous
#226CA7 #2229A7 #5E22A7
triadic
#2229A7 #A72229 #29A722
tetradic
#2229A7 #A7226C #A7A022 #22A75E
square
#2229A7 #A7226C #A7A022 #22A75E
split-complementary
#2229A7 #A75E22 #6CA722
monochromatic
#0D1041 #181D74 #2229A7 #313AD5 #646ADF

Accessibility & contrast

On white

10.81
#2229A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2229A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2229A7
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2229A7#FFFFFF#000000##FFFFFF
##2229A71.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2229a7;
/* rgb */ color: rgb(34, 41, 167);
/* oklch */ color: oklch(37.9% 0.195 270.2);
Tailwind
colors: {
  custom: {
    50: '#7664c2',
    500: '#2229a7',
    950: '#000000',
  },
}
SCSS
$custom: #2229a7;
$custom-light: #7664c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2229a7",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 167
  },
  "hsl": {
    "h": 236.842,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37908,
    "c": 0.19503,
    "h": 270.2
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

primary
#2229A7
secondary
#C5BF60
accent
#E03FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2229A7

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

Preview Lab → · Contrast checker → · Palette generator →

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