#2E22C1#2E22C1

#2E22C1 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.6% C 0.228 H 272.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2E22C1
RGBrgb(46, 34, 193)
HSLhsl(245, 70%, 45%)
HSVhsv(245, 82%, 76%)
CMYKcmyk(76.2%, 82.4%, 0%, 24.3%)
CIE-LABlab(28.31, 55.02, -78.84)
CIE-LCHlch(28.31, 96.14, 304.91°)
OKLaboklab(40.64% 0.0112 -0.2281)
OKLCHoklch(40.64% 0.228 272.8)
XYZxyz(11.3212, 5.5739, 50.9210)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22C1 #B5C122
analogous
#2266C1 #2E22C1 #7D22C1
triadic
#2E22C1 #C12E22 #22C12E
tetradic
#2E22C1 #C12266 #B5C122 #22C17D
square
#2E22C1 #C12266 #B5C122 #22C17D
split-complementary
#2E22C1 #C17D22 #66C122
monochromatic
#151059 #22198D #2E22C1 #4E42DE #7F76E7

Accessibility & contrast

On white

9.93
#2E22C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E22C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E22C1
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22C1#FFFFFF#000000##FFFFFF
##2E22C11.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC5
Deuteranopia (green-blind)
#003BBE
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e22c1;
/* rgb */ color: rgb(46, 34, 193);
/* oklch */ color: oklch(40.6% 0.228 272.8);
Tailwind
colors: {
  custom: {
    50: '#8162d5',
    500: '#2e22c1',
    950: '#000000',
  },
}
SCSS
$custom: #2e22c1;
$custom-light: #8162d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22c1",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 193
  },
  "hsl": {
    "h": 244.528,
    "s": 70.044,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40636,
    "c": 0.22836,
    "h": 272.8
  },
  "luminance": 0.05575
}

Semantic roles & 50–950 ramp

primary
#2E22C1
secondary
#C7CE71
accent
#ED3BDF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2E22C1

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

Preview Lab → · Contrast checker → · Palette generator →

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