#2229A6#2229A6

#2229A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.194 H 270.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2229A6
RGBrgb(34, 41, 166)
HSLhsl(237, 66%, 39%)
HSVhsv(237, 80%, 65%)
CMYKcmyk(79.5%, 75.3%, 0%, 34.9%)
CIE-LABlab(25.80, 41.96, -66.91)
CIE-LCHlch(25.80, 78.98, 302.09°)
OKLaboklab(37.8% 0.0009 -0.1938)
OKLCHoklch(37.8% 0.194 270.3)
XYZxyz(8.3332, 4.6782, 36.5328)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2229A6 #A69F22
analogous
#226BA6 #2229A6 #5D22A6
triadic
#2229A6 #A62229 #29A622
tetradic
#2229A6 #A6226B #A69F22 #22A65D
square
#2229A6 #A6226B #A69F22 #22A65D
split-complementary
#2229A6 #A65D22 #6BA622
monochromatic
#0D1040 #181C73 #2229A6 #3039D5 #636ADF

Accessibility & contrast

On white

10.85
#2229A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2229A6
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2229A6#FFFFFF#000000##FFFFFF
##2229A61.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2229a6;
/* rgb */ color: rgb(34, 41, 166);
/* oklch */ color: oklch(37.8% 0.194 270.3);
Tailwind
colors: {
  custom: {
    50: '#7664c2',
    500: '#2229a6',
    950: '#000000',
  },
}
SCSS
$custom: #2229a6;
$custom-light: #7664c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2229a6",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 236.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37798,
    "c": 0.19379,
    "h": 270.3
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2229A6

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

Preview Lab → · Contrast checker → · Palette generator →

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