#2D22A3#2D22A3

#2D22A3 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.194 H 275.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2D22A3
RGBrgb(45, 34, 163)
HSLhsl(245, 65%, 39%)
HSVhsv(245, 79%, 64%)
CMYKcmyk(72.4%, 79.1%, 0%, 36.1%)
CIE-LABlab(24.78, 45.71, -66.75)
CIE-LCHlch(24.78, 80.90, 304.40°)
OKLaboklab(37.16% 0.0175 -0.193)
OKLCHoklch(37.16% 0.194 275.2)
XYZxyz(8.2629, 4.3455, 35.0465)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D22A3 #98A322
analogous
#2257A3 #2D22A3 #6D22A3
triadic
#2D22A3 #A32D22 #22A32D
tetradic
#2D22A3 #A32257 #98A322 #22A36D
square
#2D22A3 #A32257 #98A322 #22A36D
split-complementary
#2D22A3 #A36D22 #57A322
monochromatic
#110D3E #1F1770 #2D22A3 #3D2FD4 #6C61DE

Accessibility & contrast

On white

11.23
#2D22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D22A3
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D22A3#FFFFFF#000000##FFFFFF
##2D22A31.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A7
Deuteranopia (green-blind)
#0035A1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d22a3;
/* rgb */ color: rgb(45, 34, 163);
/* oklch */ color: oklch(37.2% 0.194 275.2);
Tailwind
colors: {
  custom: {
    50: '#7960c0',
    500: '#2d22a3',
    950: '#000000',
  },
}
SCSS
$custom: #2d22a3;
$custom-light: #7960c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d22a3",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 245.116,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.19381,
    "h": 275.2
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#2D22A3
secondary
#BAC35E
accent
#E83FDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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