#2E22A4#2E22A4

#2E22A4 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.195 H 275.5°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2E22A4
RGBrgb(46, 34, 164)
HSLhsl(246, 66%, 39%)
HSVhsv(246, 79%, 64%)
CMYKcmyk(72%, 79.3%, 0%, 35.7%)
CIE-LABlab(24.97, 46.12, -67.05)
CIE-LCHlch(24.97, 81.38, 304.52°)
OKLaboklab(37.34% 0.0186 -0.1939)
OKLCHoklch(37.34% 0.195 275.5)
XYZxyz(8.3974, 4.4044, 35.5224)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22A4 #98A422
analogous
#2257A4 #2E22A4 #6F22A4
triadic
#2E22A4 #A42E22 #22A42E
tetradic
#2E22A4 #A42257 #98A422 #22A46F
square
#2E22A4 #A42257 #98A422 #22A46F
split-complementary
#2E22A4 #A46F22 #57A422
monochromatic
#120D3F #201771 #2E22A4 #3E2FD4 #6D62DE

Accessibility & contrast

On white

11.16
#2E22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2E22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E22A4
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22A4#FFFFFF#000000##FFFFFF
##2E22A41.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e22a4;
/* rgb */ color: rgb(46, 34, 164);
/* oklch */ color: oklch(37.3% 0.195 275.5);
Tailwind
colors: {
  custom: {
    50: '#7a60c0',
    500: '#2e22a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e22a4;
$custom-light: #7a60c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22a4",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 245.538,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37341,
    "c": 0.19476,
    "h": 275.5
  },
  "luminance": 0.04405
}

Semantic roles & 50–950 ramp

primary
#2E22A4
secondary
#BAC45E
accent
#E93FD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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