#2228A8#2228A8

#2228A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.197 H 270.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2228A8
RGBrgb(34, 40, 168)
HSLhsl(237, 66%, 40%)
HSVhsv(237, 80%, 66%)
CMYKcmyk(79.8%, 76.2%, 0%, 34.1%)
CIE-LABlab(25.81, 43.22, -68.09)
CIE-LCHlch(25.81, 80.65, 302.41°)
OKLaboklab(37.88% 0.0009 -0.1972)
OKLCHoklch(37.88% 0.197 270.3)
XYZxyz(8.4840, 4.6839, 37.4951)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2228A8 #A8A222
analogous
#226BA8 #2228A8 #5F22A8
triadic
#2228A8 #A82228 #28A822
tetradic
#2228A8 #A8226B #A8A222 #22A85F
square
#2228A8 #A8226B #A8A222 #22A85F
split-complementary
#2228A8 #A85F22 #6BA822
monochromatic
#0D1042 #181C75 #2228A8 #3239D5 #656AE0

Accessibility & contrast

On white

10.84
#2228A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2228A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2228A8
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2228A8#FFFFFF#000000##FFFFFF
##2228A81.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2228a8;
/* rgb */ color: rgb(34, 40, 168);
/* oklch */ color: oklch(37.9% 0.197 270.3);
Tailwind
colors: {
  custom: {
    50: '#7664c3',
    500: '#2228a8',
    950: '#000000',
  },
}
SCSS
$custom: #2228a8;
$custom-light: #7664c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2228a8",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 237.313,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37875,
    "c": 0.19721,
    "h": 270.3
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

primary
#2228A8
secondary
#C5C161
accent
#E23FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2228A8

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

Preview Lab → · Contrast checker → · Palette generator →

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