#2228BD#2228BD

#2228BD is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.2% C 0.222 H 269.3°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2228BD
RGBrgb(34, 40, 189)
HSLhsl(238, 70%, 44%)
HSVhsv(238, 82%, 74%)
CMYKcmyk(82%, 78.8%, 0%, 25.9%)
CIE-LABlab(28.20, 50.18, -76.69)
CIE-LCHlch(28.20, 91.65, 303.20°)
OKLaboklab(40.25% -0.0027 -0.2221)
OKLCHoklch(40.25% 0.222 269.3)
XYZxyz(10.6006, 5.5305, 48.6430)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2228BD #BDB722
analogous
#2275BD #2228BD #6922BD
triadic
#2228BD #BD2228 #28BD22
tetradic
#2228BD #BD2275 #BDB722 #22BD69
square
#2228BD #BD2275 #BDB722 #22BD69
split-complementary
#2228BD #BD6922 #75BD22
monochromatic
#0F1255 #191D89 #2228BD #4046DD #7378E6

Accessibility & contrast

On white

9.97
#2228BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2228BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2228BD
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2228BD#FFFFFF#000000##FFFFFF
##2228BD1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC1
Deuteranopia (green-blind)
#003ABA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2228bd;
/* rgb */ color: rgb(34, 40, 189);
/* oklch */ color: oklch(40.2% 0.222 269.3);
Tailwind
colors: {
  custom: {
    50: '#7c65d2',
    500: '#2228bd',
    950: '#000000',
  },
}
SCSS
$custom: #2228bd;
$custom-light: #7c65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2228bd",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 237.677,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.22217,
    "h": 269.3
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#2228BD
secondary
#CDC96E
accent
#E53BEC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2228BD

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

Preview Lab → · Contrast checker → · Palette generator →

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