#2E22A6#2E22A6

#2E22A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.6% C 0.197 H 275.3°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2E22A6
RGBrgb(46, 34, 166)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(72.3%, 79.5%, 0%, 34.9%)
CIE-LABlab(25.19, 46.75, -67.89)
CIE-LCHlch(25.19, 82.43, 304.55°)
OKLaboklab(37.56% 0.0181 -0.1963)
OKLCHoklch(37.56% 0.197 275.3)
XYZxyz(8.5794, 4.4772, 36.4811)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22A6 #9AA622
analogous
#2258A6 #2E22A6 #7022A6
triadic
#2E22A6 #A62E22 #22A62E
tetradic
#2E22A6 #A62258 #9AA622 #22A670
square
#2E22A6 #A62258 #9AA622 #22A670
split-complementary
#2E22A6 #A67022 #58A622
monochromatic
#120D40 #201873 #2E22A6 #3F30D5 #6F63DF

Accessibility & contrast

On white

11.08
#2E22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E22A6
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22A6#FFFFFF#000000##FFFFFF
##2E22A61.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e22a6;
/* rgb */ color: rgb(46, 34, 166);
/* oklch */ color: oklch(37.6% 0.197 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a61c2',
    500: '#2e22a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e22a6;
$custom-light: #7a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22a6",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 245.455,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37564,
    "c": 0.19714,
    "h": 275.3
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#2E22A6
secondary
#BBC45F
accent
#E93FD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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