#2222BD#2222BD

#2222BD is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.5% C 0.227 H 269.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2222BD
RGBrgb(34, 34, 189)
HSLhsl(240, 70%, 44%)
HSVhsv(240, 82%, 74%)
CMYKcmyk(82%, 82%, 0%, 25.9%)
CIE-LABlab(27.18, 53.15, -78.38)
CIE-LCHlch(27.18, 94.70, 304.14°)
OKLaboklab(39.54% -0.0015 -0.2269)
OKLCHoklch(39.54% 0.227 269.6)
XYZxyz(10.4139, 5.1570, 48.5808)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222BD #BDBD22
analogous
#226FBD #2222BD #6F22BD
triadic
#2222BD #BD2222 #22BD22
tetradic
#2222BD #BD226F #BDBD22 #22BD6F
square
#2222BD #BD226F #BDBD22 #22BD6F
split-complementary
#2222BD #BD6F22 #6FBD22
monochromatic
#0F0F55 #191989 #2222BD #4040DD #7373E6

Accessibility & contrast

On white

10.34
#2222BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2222BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2222BD
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2222BD#FFFFFF#000000##FFFFFF
##2222BD1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C1
Deuteranopia (green-blind)
#0038BA
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2222bd;
/* rgb */ color: rgb(34, 34, 189);
/* oklch */ color: oklch(39.5% 0.227 269.6);
Tailwind
colors: {
  custom: {
    50: '#7c62d2',
    500: '#2222bd',
    950: '#000000',
  },
}
SCSS
$custom: #2222bd;
$custom-light: #7c62d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2222bd",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 240,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.39537,
    "c": 0.22694,
    "h": 269.6
  },
  "luminance": 0.05158
}

Semantic roles & 50–950 ramp

primary
#2222BD
secondary
#CDCD6E
accent
#EC3BEC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2222BD

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

Preview Lab → · Contrast checker → · Palette generator →

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