#2D22A7#2D22A7

#2D22A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.6% C 0.199 H 274.8°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2D22A7
RGBrgb(45, 34, 167)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(73.1%, 79.6%, 0%, 34.5%)
CIE-LABlab(25.23, 46.98, -68.43)
CIE-LCHlch(25.23, 83.00, 304.47°)
OKLaboklab(37.61% 0.0165 -0.1979)
OKLCHoklch(37.61% 0.199 274.8)
XYZxyz(8.6270, 4.4911, 36.9639)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D22A7 #9CA722
analogous
#225AA7 #2D22A7 #6F22A7
triadic
#2D22A7 #A72D22 #22A72D
tetradic
#2D22A7 #A7225A #9CA722 #22A76F
square
#2D22A7 #A7225A #9CA722 #22A76F
split-complementary
#2D22A7 #A76F22 #5AA722
monochromatic
#120D41 #1F1874 #2D22A7 #3F31D5 #6E64DF

Accessibility & contrast

On white

11.06
#2D22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D22A7
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D22A7#FFFFFF#000000##FFFFFF
##2D22A71.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d22a7;
/* rgb */ color: rgb(45, 34, 167);
/* oklch */ color: oklch(37.6% 0.199 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a61c2',
    500: '#2d22a7',
    950: '#000000',
  },
}
SCSS
$custom: #2d22a7;
$custom-light: #7a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d22a7",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 244.962,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37608,
    "c": 0.19858,
    "h": 274.8
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#2D22A7
secondary
#BCC560
accent
#E93FDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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