#2226BD#2226BD

#2226BD is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.0% C 0.224 H 269.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2226BD
RGBrgb(34, 38, 189)
HSLhsl(238, 70%, 44%)
HSVhsv(238, 82%, 74%)
CMYKcmyk(82%, 79.9%, 0%, 25.9%)
CIE-LABlab(27.84, 51.20, -77.28)
CIE-LCHlch(27.84, 92.70, 303.53°)
OKLaboklab(40% -0.0023 -0.2238)
OKLCHoklch(40% 0.224 269.4)
XYZxyz(10.5350, 5.3992, 48.6211)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226BD #BDB922
analogous
#2273BD #2226BD #6B22BD
triadic
#2226BD #BD2226 #26BD22
tetradic
#2226BD #BD2273 #BDB922 #22BD6B
square
#2226BD #BD2273 #BDB922 #22BD6B
split-complementary
#2226BD #BD6B22 #73BD22
monochromatic
#0F1155 #191C89 #2226BD #4044DD #7376E6

Accessibility & contrast

On white

10.10
#2226BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2226BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2226BD
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226BD#FFFFFF#000000##FFFFFF
##2226BD1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2226bd;
/* rgb */ color: rgb(34, 38, 189);
/* oklch */ color: oklch(40.0% 0.224 269.4);
Tailwind
colors: {
  custom: {
    50: '#7c64d2',
    500: '#2226bd',
    950: '#000000',
  },
}
SCSS
$custom: #2226bd;
$custom-light: #7c64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2226bd",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 238.452,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.22382,
    "h": 269.4
  },
  "luminance": 0.054
}

Semantic roles & 50–950 ramp

primary
#2226BD
secondary
#CDCA6E
accent
#E83BEC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2226BD

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

Preview Lab → · Contrast checker → · Palette generator →

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