#2E22A8#2E22A8

#2E22A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.200 H 275.1°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2E22A8
RGBrgb(46, 34, 168)
HSLhsl(245, 66%, 40%)
HSVhsv(245, 80%, 66%)
CMYKcmyk(72.6%, 79.8%, 0%, 34.1%)
CIE-LABlab(25.42, 47.37, -68.73)
CIE-LCHlch(25.42, 83.47, 304.58°)
OKLaboklab(37.79% 0.0176 -0.1987)
OKLCHoklch(37.79% 0.2 275.1)
XYZxyz(8.7643, 4.5512, 37.4548)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22A8 #9CA822
analogous
#2259A8 #2E22A8 #7122A8
triadic
#2E22A8 #A82E22 #22A82E
tetradic
#2E22A8 #A82259 #9CA822 #22A871
square
#2E22A8 #A82259 #9CA822 #22A871
split-complementary
#2E22A8 #A87122 #59A822
monochromatic
#120D42 #201875 #2E22A8 #4032D5 #7065E0

Accessibility & contrast

On white

10.99
#2E22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2E22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E22A8
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22A8#FFFFFF#000000##FFFFFF
##2E22A81.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e22a8;
/* rgb */ color: rgb(46, 34, 168);
/* oklch */ color: oklch(37.8% 0.200 275.1);
Tailwind
colors: {
  custom: {
    50: '#7b61c3',
    500: '#2e22a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e22a8;
$custom-light: #7b61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22a8",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 245.373,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37787,
    "c": 0.19952,
    "h": 275.1
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#2E22A8
secondary
#BCC561
accent
#E93FDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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