#2E217E#2E217E

#2E217E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.148 H 281.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2E217E
RGBrgb(46, 33, 126)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 74%, 49%)
CMYKcmyk(63.5%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.73, 34.32, -50.48)
CIE-LCHlch(20.73, 61.04, 304.21°)
OKLaboklab(33.15% 0.0282 -0.1455)
OKLCHoklch(33.15% 0.148 281)
XYZxyz(5.4353, 3.1745, 20.0609)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E217E #717E21
analogous
#21427E #2E217E #5C217E
triadic
#2E217E #7E2E21 #217E2E
tetradic
#2E217E #7E2142 #717E21 #217E5C
square
#2E217E #7E2142 #717E21 #217E5C
split-complementary
#2E217E #7E5C21 #427E21
monochromatic
#0B081D #1C144E #2E217E #402EAE #5D4AD0

Accessibility & contrast

On white

12.84
#2E217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E217E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E217E#FFFFFF#000000##FFFFFF
##2E217E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e217e;
/* rgb */ color: rgb(46, 33, 126);
/* oklch */ color: oklch(33.1% 0.148 281.0);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2e217e',
    950: '#000000',
  },
}
SCSS
$custom: #2e217e;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e217e",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 248.387,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33149,
    "c": 0.14824,
    "h": 281
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#2E217E
secondary
#A2B14A
accent
#E246CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E217E

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

Preview Lab → · Contrast checker → · Palette generator →

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