#2B22A4#2B22A4

#2B22A4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.196 H 274.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2B22A4
RGBrgb(43, 34, 164)
HSLhsl(244, 66%, 39%)
HSVhsv(244, 79%, 64%)
CMYKcmyk(73.8%, 79.3%, 0%, 35.7%)
CIE-LABlab(24.76, 45.86, -67.40)
CIE-LCHlch(24.76, 81.53, 304.23°)
OKLaboklab(37.14% 0.0146 -0.195)
OKLCHoklch(37.14% 0.196 274.3)
XYZxyz(8.2669, 4.3372, 35.5162)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B22A4 #9BA422
analogous
#225AA4 #2B22A4 #6C22A4
triadic
#2B22A4 #A42B22 #22A42B
tetradic
#2B22A4 #A4225A #9BA422 #22A46C
square
#2B22A4 #A4225A #9BA422 #22A46C
split-complementary
#2B22A4 #A46C22 #5AA422
monochromatic
#100D3F #1E1771 #2B22A4 #3B2FD4 #6B62DE

Accessibility & contrast

On white

11.24
#2B22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B22A4
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B22A4#FFFFFF#000000##FFFFFF
##2B22A41.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b22a4;
/* rgb */ color: rgb(43, 34, 164);
/* oklch */ color: oklch(37.1% 0.196 274.3);
Tailwind
colors: {
  custom: {
    50: '#7960c0',
    500: '#2b22a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b22a4;
$custom-light: #7960c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b22a4",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 244.154,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3714,
    "c": 0.19552,
    "h": 274.3
  },
  "luminance": 0.04338
}

Semantic roles & 50–950 ramp

primary
#2B22A4
secondary
#BCC45E
accent
#E93FDD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2B22A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2B22A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva