#2E20A3#2E20A3

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

Color values

HEX#2E20A3
RGBrgb(46, 32, 163)
HSLhsl(246, 67%, 38%)
HSVhsv(246, 80%, 64%)
CMYKcmyk(71.8%, 80.4%, 0%, 36.1%)
CIE-LABlab(24.50, 46.81, -67.21)
CIE-LCHlch(24.50, 81.90, 304.86°)
OKLaboklab(36.99% 0.0197 -0.1943)
OKLCHoklch(36.99% 0.195 275.8)
XYZxyz(8.2519, 4.2574, 35.0301)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E20A3 #95A320
analogous
#2053A3 #2E20A3 #6F20A3
triadic
#2E20A3 #A32E20 #20A32E
tetradic
#2E20A3 #A32053 #95A320 #20A36F
square
#2E20A3 #A32053 #95A320 #20A36F
split-complementary
#2E20A3 #A36F20 #53A320
monochromatic
#110C3D #201670 #2E20A3 #3D2BD5 #6C5EDF

Accessibility & contrast

On white

11.34
#2E20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E20A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E20A3
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E20A3#FFFFFF#000000##FFFFFF
##2E20A31.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A7
Deuteranopia (green-blind)
#0034A1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e20a3;
/* rgb */ color: rgb(46, 32, 163);
/* oklch */ color: oklch(37.0% 0.195 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fc0',
    500: '#2e20a3',
    950: '#000000',
  },
}
SCSS
$custom: #2e20a3;
$custom-light: #7a5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e20a3",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 246.412,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36987,
    "c": 0.19529,
    "h": 275.8
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#2E20A3
secondary
#B9C45B
accent
#EA3ED8
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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