#2E22A1#2E22A1

#2E22A1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.191 H 275.8°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2E22A1
RGBrgb(46, 34, 161)
HSLhsl(246, 65%, 38%)
HSVhsv(246, 79%, 63%)
CMYKcmyk(71.4%, 78.9%, 0%, 36.9%)
CIE-LABlab(24.63, 45.17, -65.78)
CIE-LCHlch(24.63, 79.80, 304.47°)
OKLaboklab(37.01% 0.0194 -0.1902)
OKLCHoklch(37.01% 0.191 275.8)
XYZxyz(8.1297, 4.2973, 34.1123)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22A1 #95A122
analogous
#2255A1 #2E22A1 #6D22A1
triadic
#2E22A1 #A12E22 #22A12E
tetradic
#2E22A1 #A12255 #95A122 #22A16D
square
#2E22A1 #A12255 #95A122 #22A16D
split-complementary
#2E22A1 #A16D22 #55A122
monochromatic
#110D3C #20176E #2E22A1 #3D2DD3 #6C60DD

Accessibility & contrast

On white

11.29
#2E22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E22A1
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22A1#FFFFFF#000000##FFFFFF
##2E22A11.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e22a1;
/* rgb */ color: rgb(46, 34, 161);
/* oklch */ color: oklch(37.0% 0.191 275.8);
Tailwind
colors: {
  custom: {
    50: '#7960be',
    500: '#2e22a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e22a1;
$custom-light: #7960be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22a1",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 245.669,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37009,
    "c": 0.19116,
    "h": 275.8
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#2E22A1
secondary
#B9C25D
accent
#E840D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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