#2D22A0#2D22A0

#2D22A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.190 H 275.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2D22A0
RGBrgb(45, 34, 160)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 79%, 63%)
CMYKcmyk(71.9%, 78.8%, 0%, 37.3%)
CIE-LABlab(24.45, 44.76, -65.48)
CIE-LCHlch(24.45, 79.31, 304.35°)
OKLaboklab(36.83% 0.0183 -0.1893)
OKLCHoklch(36.83% 0.19 275.5)
XYZxyz(7.9973, 4.2392, 33.6477)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D22A0 #95A022
analogous
#2256A0 #2D22A0 #6C22A0
triadic
#2D22A0 #A02D22 #22A02D
tetradic
#2D22A0 #A02256 #95A022 #22A06C
square
#2D22A0 #A02256 #95A022 #22A06C
split-complementary
#2D22A0 #A06C22 #56A022
monochromatic
#110D3B #1F176E #2D22A0 #3B2DD2 #6A5FDD

Accessibility & contrast

On white

11.36
#2D22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D22A0
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D22A0#FFFFFF#000000##FFFFFF
##2D22A01.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d22a0;
/* rgb */ color: rgb(45, 34, 160);
/* oklch */ color: oklch(36.8% 0.190 275.5);
Tailwind
colors: {
  custom: {
    50: '#7860bd',
    500: '#2d22a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d22a0;
$custom-light: #7860bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d22a0",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 245.238,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.1902,
    "h": 275.5
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#2D22A0
secondary
#B9C25C
accent
#E840D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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