#2D22A4#2D22A4

#2D22A4 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.195 H 275.1°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2D22A4
RGBrgb(45, 34, 164)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 79%, 64%)
CMYKcmyk(72.6%, 79.3%, 0%, 35.7%)
CIE-LABlab(24.89, 46.03, -67.17)
CIE-LCHlch(24.89, 81.43, 304.42°)
OKLaboklab(37.27% 0.0173 -0.1942)
OKLCHoklch(37.27% 0.195 275.1)
XYZxyz(8.3528, 4.3815, 35.5203)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D22A4 #99A422
analogous
#2258A4 #2D22A4 #6E22A4
triadic
#2D22A4 #A42D22 #22A42D
tetradic
#2D22A4 #A42258 #99A422 #22A46E
square
#2D22A4 #A42258 #99A422 #22A46E
split-complementary
#2D22A4 #A46E22 #58A422
monochromatic
#110D3F #1F1771 #2D22A4 #3D2FD4 #6C62DE

Accessibility & contrast

On white

11.19
#2D22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D22A4
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D22A4#FFFFFF#000000##FFFFFF
##2D22A41.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.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: #2d22a4;
/* rgb */ color: rgb(45, 34, 164);
/* oklch */ color: oklch(37.3% 0.195 275.1);
Tailwind
colors: {
  custom: {
    50: '#7960c0',
    500: '#2d22a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d22a4;
$custom-light: #7960c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d22a4",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 245.077,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37273,
    "c": 0.19501,
    "h": 275.1
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#2D22A4
secondary
#BBC45E
accent
#E93FDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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