#2E2271#2E2271

#2E2271 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.130 H 283.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2E2271
RGBrgb(46, 34, 113)
HSLhsl(249, 54%, 29%)
HSVhsv(249, 70%, 44%)
CMYKcmyk(59.3%, 69.9%, 0%, 55.7%)
CIE-LABlab(19.71, 29.33, -43.83)
CIE-LCHlch(19.71, 52.74, 303.79°)
OKLaboklab(32.03% 0.0296 -0.1261)
OKLCHoklch(32.03% 0.13 283.2)
XYZxyz(4.6785, 2.9169, 15.9361)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2271 #657122
analogous
#223E71 #2E2271 #562271
triadic
#2E2271 #712E22 #22712E
tetradic
#2E2271 #71223E #657122 #227156
square
#2E2271 #71223E #657122 #227156
split-complementary
#2E2271 #715622 #3E7122
monochromatic
#0A0718 #1B1442 #2E2271 #4130A0 #5A46C7

Accessibility & contrast

On white

13.26
#2E2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2271
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2271#FFFFFF#000000##FFFFFF
##2E22711.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#0C3646
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e2271;
/* rgb */ color: rgb(46, 34, 113);
/* oklch */ color: oklch(32.0% 0.130 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f5e9b',
    500: '#2e2271',
    950: '#000000',
  },
}
SCSS
$custom: #2e2271;
$custom-light: #6f5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2271",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 249.114,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32034,
    "c": 0.1295,
    "h": 283.2
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#2E2271
secondary
#97A44A
accent
#DD4BC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2271

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

Preview Lab → · Contrast checker → · Palette generator →

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