#2222BB#2222BB

#2222BB is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.3% C 0.225 H 269.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2222BB
RGBrgb(34, 34, 187)
HSLhsl(240, 69%, 43%)
HSVhsv(240, 82%, 73%)
CMYKcmyk(81.8%, 81.8%, 0%, 26.7%)
CIE-LABlab(26.94, 52.53, -77.60)
CIE-LCHlch(26.94, 93.71, 304.09°)
OKLaboklab(39.3% -0.0011 -0.2247)
OKLCHoklch(39.3% 0.225 269.7)
XYZxyz(10.1983, 5.0708, 47.4453)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222BB #BBBB22
analogous
#226EBB #2222BB #6E22BB
triadic
#2222BB #BB2222 #22BB22
tetradic
#2222BB #BB226E #BBBB22 #22BB6E
square
#2222BB #BB226E #BBBB22 #22BB6E
split-complementary
#2222BB #BB6E22 #6EBB22
monochromatic
#0F0F53 #191987 #2222BB #3E3EDC #7272E5

Accessibility & contrast

On white

10.42
#2222BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2222BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2222BB
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2222BB#FFFFFF#000000##FFFFFF
##2222BB1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BF
Deuteranopia (green-blind)
#0037B8
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2222bb;
/* rgb */ color: rgb(34, 34, 187);
/* oklch */ color: oklch(39.3% 0.225 269.7);
Tailwind
colors: {
  custom: {
    50: '#7c61d1',
    500: '#2222bb',
    950: '#000000',
  },
}
SCSS
$custom: #2222bb;
$custom-light: #7c61d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2222bb",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 187
  },
  "hsl": {
    "h": 240,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.393,
    "c": 0.22468,
    "h": 269.7
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#2222BB
secondary
#CCCC6D
accent
#EC3CEC
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2222BB

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

Preview Lab → · Contrast checker → · Palette generator →

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