#2E20A5#2E20A5

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

Color values

HEX#2E20A5
RGBrgb(46, 32, 165)
HSLhsl(246, 68%, 39%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(72.1%, 80.6%, 0%, 35.3%)
CIE-LABlab(24.73, 47.43, -68.04)
CIE-LCHlch(24.73, 82.94, 304.88°)
OKLaboklab(37.21% 0.0192 -0.1967)
OKLCHoklch(37.21% 0.198 275.6)
XYZxyz(8.4325, 4.3297, 35.9813)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E20A5 #97A520
analogous
#2054A5 #2E20A5 #7020A5
triadic
#2E20A5 #A52E20 #20A52E
tetradic
#2E20A5 #A52054 #97A520 #20A570
square
#2E20A5 #A52054 #97A520 #20A570
split-complementary
#2E20A5 #A57020 #54A520
monochromatic
#110C3E #201672 #2E20A5 #3E2CD6 #6D5FE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E20A5#FFFFFF#000000##FFFFFF
##2E20A51.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)
#0040A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e20a5;
/* rgb */ color: rgb(46, 32, 165);
/* oklch */ color: oklch(37.2% 0.198 275.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fc1',
    500: '#2e20a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e20a5;
$custom-light: #7a5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e20a5",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 246.316,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37212,
    "c": 0.19765,
    "h": 275.6
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#2E20A5
secondary
#BAC55C
accent
#EA3DD8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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