#2D22A1#2D22A1

#2D22A1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.191 H 275.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2D22A1
RGBrgb(45, 34, 161)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 79%, 63%)
CMYKcmyk(72%, 78.9%, 0%, 36.9%)
CIE-LABlab(24.56, 45.08, -65.90)
CIE-LCHlch(24.56, 79.84, 304.37°)
OKLaboklab(36.94% 0.018 -0.1906)
OKLCHoklch(36.94% 0.191 275.4)
XYZxyz(8.0851, 4.2744, 34.1102)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D22A1 #96A122
analogous
#2256A1 #2D22A1 #6C22A1
triadic
#2D22A1 #A12D22 #22A12D
tetradic
#2D22A1 #A12256 #96A122 #22A16C
square
#2D22A1 #A12256 #96A122 #22A16C
split-complementary
#2D22A1 #A16C22 #56A122
monochromatic
#110D3C #1F176E #2D22A1 #3C2DD3 #6B60DD

Accessibility & contrast

On white

11.32
#2D22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D22A1
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D22A1#FFFFFF#000000##FFFFFF
##2D22A11.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d22a1;
/* rgb */ color: rgb(45, 34, 161);
/* oklch */ color: oklch(36.9% 0.191 275.4);
Tailwind
colors: {
  custom: {
    50: '#7960be',
    500: '#2d22a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d22a1;
$custom-light: #7960be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d22a1",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 245.197,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36939,
    "c": 0.19141,
    "h": 275.4
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#2D22A1
secondary
#B9C25D
accent
#E840DA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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