#2E22A2#2E22A2

#2E22A2 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.192 H 275.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2E22A2
RGBrgb(46, 34, 162)
HSLhsl(246, 65%, 38%)
HSVhsv(246, 79%, 64%)
CMYKcmyk(71.6%, 79%, 0%, 36.5%)
CIE-LABlab(24.74, 45.48, -66.21)
CIE-LCHlch(24.74, 80.32, 304.49°)
OKLaboklab(37.12% 0.0191 -0.1914)
OKLCHoklch(37.12% 0.192 275.7)
XYZxyz(8.2182, 4.3328, 34.5786)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22A2 #96A222
analogous
#2256A2 #2E22A2 #6E22A2
triadic
#2E22A2 #A22E22 #22A22E
tetradic
#2E22A2 #A22256 #96A222 #22A26E
square
#2E22A2 #A22256 #96A222 #22A26E
split-complementary
#2E22A2 #A26E22 #56A222
monochromatic
#110D3D #20176F #2E22A2 #3E2ED3 #6C61DE

Accessibility & contrast

On white

11.25
#2E22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2E22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E22A2
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22A2#FFFFFF#000000##FFFFFF
##2E22A21.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0035A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e22a2;
/* rgb */ color: rgb(46, 34, 162);
/* oklch */ color: oklch(37.1% 0.192 275.7);
Tailwind
colors: {
  custom: {
    50: '#7960bf',
    500: '#2e22a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e22a2;
$custom-light: #7960bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22a2",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 245.625,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3712,
    "c": 0.19236,
    "h": 275.7
  },
  "luminance": 0.04334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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