#2229A5#2229A5

#2229A5 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.193 H 270.3°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2229A5
RGBrgb(34, 41, 165)
HSLhsl(237, 66%, 39%)
HSVhsv(237, 79%, 65%)
CMYKcmyk(79.4%, 75.2%, 0%, 35.3%)
CIE-LABlab(25.69, 41.62, -66.49)
CIE-LCHlch(25.69, 78.44, 302.04°)
OKLaboklab(37.69% 0.001 -0.1926)
OKLCHoklch(37.69% 0.193 270.3)
XYZxyz(8.2418, 4.6416, 36.0516)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2229A5 #A59E22
analogous
#226BA5 #2229A5 #5D22A5
triadic
#2229A5 #A52229 #29A522
tetradic
#2229A5 #A5226B #A59E22 #22A55D
square
#2229A5 #A5226B #A59E22 #22A55D
split-complementary
#2229A5 #A55D22 #6BA522
monochromatic
#0D1040 #181C72 #2229A5 #3039D4 #6369DF

Accessibility & contrast

On white

10.89
#2229A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2229A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2229A5
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2229A5#FFFFFF#000000##FFFFFF
##2229A51.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2229a5;
/* rgb */ color: rgb(34, 41, 165);
/* oklch */ color: oklch(37.7% 0.193 270.3);
Tailwind
colors: {
  custom: {
    50: '#7564c1',
    500: '#2229a5',
    950: '#000000',
  },
}
SCSS
$custom: #2229a5;
$custom-light: #7564c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2229a5",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 236.794,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37688,
    "c": 0.19256,
    "h": 270.3
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2229A5

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

Preview Lab → · Contrast checker → · Palette generator →

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