#2222BA#2222BA

#2222BA is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.2% C 0.224 H 269.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2222BA
RGBrgb(34, 34, 186)
HSLhsl(240, 69%, 43%)
HSVhsv(240, 82%, 73%)
CMYKcmyk(81.7%, 81.7%, 0%, 27.1%)
CIE-LABlab(26.81, 52.22, -77.21)
CIE-LCHlch(26.81, 93.21, 304.07°)
OKLaboklab(39.18% -0.0009 -0.2235)
OKLCHoklch(39.18% 0.224 269.8)
XYZxyz(10.0916, 5.0281, 46.8835)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222BA #BABA22
analogous
#226EBA #2222BA #6E22BA
triadic
#2222BA #BA2222 #22BA22
tetradic
#2222BA #BA226E #BABA22 #22BA6E
square
#2222BA #BA226E #BABA22 #22BA6E
split-complementary
#2222BA #BA6E22 #6EBA22
monochromatic
#0F0F53 #191986 #2222BA #3E3EDC #7171E5

Accessibility & contrast

On white

10.47
#2222BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2222BA
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2222BA#FFFFFF#000000##FFFFFF
##2222BA1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BE
Deuteranopia (green-blind)
#0037B7
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2222ba;
/* rgb */ color: rgb(34, 34, 186);
/* oklch */ color: oklch(39.2% 0.224 269.8);
Tailwind
colors: {
  custom: {
    50: '#7b61d0',
    500: '#2222ba',
    950: '#000000',
  },
}
SCSS
$custom: #2222ba;
$custom-light: #7b61d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2222ba",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 186
  },
  "hsl": {
    "h": 240,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39181,
    "c": 0.22354,
    "h": 269.8
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2222BA

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

Preview Lab → · Contrast checker → · Palette generator →

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