#2E20A1#2E20A1

#2E20A1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.193 H 276.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2E20A1
RGBrgb(46, 32, 161)
HSLhsl(247, 67%, 38%)
HSVhsv(247, 80%, 63%)
CMYKcmyk(71.4%, 80.1%, 0%, 36.9%)
CIE-LABlab(24.28, 46.18, -66.37)
CIE-LCHlch(24.28, 80.85, 304.83°)
OKLaboklab(36.76% 0.0203 -0.1918)
OKLCHoklch(36.76% 0.193 276)
XYZxyz(8.0741, 4.1863, 34.0938)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E20A1 #93A120
analogous
#2052A1 #2E20A1 #6F20A1
triadic
#2E20A1 #A12E20 #20A12E
tetradic
#2E20A1 #A12052 #93A120 #20A16F
square
#2E20A1 #A12052 #93A120 #20A16F
split-complementary
#2E20A1 #A16F20 #52A120
monochromatic
#110C3B #1F166E #2E20A1 #3D2AD4 #6B5DDF

Accessibility & contrast

On white

11.43
#2E20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E20A1
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E20A1#FFFFFF#000000##FFFFFF
##2E20A11.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e20a1;
/* rgb */ color: rgb(46, 32, 161);
/* oklch */ color: oklch(36.8% 0.193 276.0);
Tailwind
colors: {
  custom: {
    50: '#795fbe',
    500: '#2e20a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e20a1;
$custom-light: #795fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e20a1",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 246.512,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36763,
    "c": 0.19292,
    "h": 276
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#2E20A1
secondary
#B8C35A
accent
#EA3ED7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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