#2E217D#2E217D

#2E217D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.147 H 281.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2E217D
RGBrgb(46, 33, 125)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 74%, 49%)
CMYKcmyk(63.2%, 73.6%, 0%, 51%)
CIE-LABlab(20.63, 33.98, -50.01)
CIE-LCHlch(20.63, 60.46, 304.20°)
OKLaboklab(33.05% 0.0284 -0.1442)
OKLCHoklch(33.05% 0.147 281.1)
XYZxyz(5.3711, 3.1488, 19.7228)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E217D #707D21
analogous
#21427D #2E217D #5C217D
triadic
#2E217D #7D2E21 #217D2E
tetradic
#2E217D #7D2142 #707D21 #217D5C
square
#2E217D #7D2142 #707D21 #217D5C
split-complementary
#2E217D #7D5C21 #427D21
monochromatic
#0A071C #1C144D #2E217D #402EAD #5C49CF

Accessibility & contrast

On white

12.89
#2E217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E217D
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E217D#FFFFFF#000000##FFFFFF
##2E217D1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e217d;
/* rgb */ color: rgb(46, 33, 125);
/* oklch */ color: oklch(33.0% 0.147 281.1);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2e217d',
    950: '#000000',
  },
}
SCSS
$custom: #2e217d;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e217d",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 248.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33048,
    "c": 0.14693,
    "h": 281.1
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#2E217D
secondary
#A1B04A
accent
#E146CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E217D

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

Preview Lab → · Contrast checker → · Palette generator →

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