#2E22A7#2E22A7

#2E22A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.7% C 0.198 H 275.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2E22A7
RGBrgb(46, 34, 167)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(72.5%, 79.6%, 0%, 34.5%)
CIE-LABlab(25.30, 47.06, -68.31)
CIE-LCHlch(25.30, 82.95, 304.56°)
OKLaboklab(37.68% 0.0178 -0.1975)
OKLCHoklch(37.68% 0.198 275.2)
XYZxyz(8.6715, 4.5141, 36.9660)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22A7 #9BA722
analogous
#2258A7 #2E22A7 #7122A7
triadic
#2E22A7 #A72E22 #22A72E
tetradic
#2E22A7 #A72258 #9BA722 #22A771
square
#2E22A7 #A72258 #9BA722 #22A771
split-complementary
#2E22A7 #A77122 #58A722
monochromatic
#120D41 #201874 #2E22A7 #4031D5 #6F64DF

Accessibility & contrast

On white

11.04
#2E22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E22A7
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22A7#FFFFFF#000000##FFFFFF
##2E22A71.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.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: #2e22a7;
/* rgb */ color: rgb(46, 34, 167);
/* oklch */ color: oklch(37.7% 0.198 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a61c2',
    500: '#2e22a7',
    950: '#000000',
  },
}
SCSS
$custom: #2e22a7;
$custom-light: #7a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22a7",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 245.414,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37676,
    "c": 0.19833,
    "h": 275.2
  },
  "luminance": 0.04515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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