#2E20A6#2E20A6

#2E20A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.199 H 275.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2E20A6
RGBrgb(46, 32, 166)
HSLhsl(246, 68%, 39%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(72.3%, 80.7%, 0%, 34.9%)
CIE-LABlab(24.85, 47.74, -68.46)
CIE-LCHlch(24.85, 83.46, 304.89°)
OKLaboklab(37.33% 0.0189 -0.1979)
OKLCHoklch(37.33% 0.199 275.5)
XYZxyz(8.5239, 4.3662, 36.4625)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E20A6 #98A620
analogous
#2055A6 #2E20A6 #7120A6
triadic
#2E20A6 #A62E20 #20A62E
tetradic
#2E20A6 #A62055 #98A620 #20A671
square
#2E20A6 #A62055 #98A620 #20A671
split-complementary
#2E20A6 #A67120 #55A620
monochromatic
#120C3F #201673 #2E20A6 #3E2DD6 #6D60E0

Accessibility & contrast

On white

11.21
#2E20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E20A6
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E20A6#FFFFFF#000000##FFFFFF
##2E20A61.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e20a6;
/* rgb */ color: rgb(46, 32, 166);
/* oklch */ color: oklch(37.3% 0.199 275.5);
Tailwind
colors: {
  custom: {
    50: '#7a5fc2',
    500: '#2e20a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e20a6;
$custom-light: #7a5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e20a6",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 246.269,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37325,
    "c": 0.19883,
    "h": 275.5
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#2E20A6
secondary
#BAC55D
accent
#EB3DD8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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