#2E217B#2E217B

#2E217B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.144 H 281.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2E217B
RGBrgb(46, 33, 123)
HSLhsl(249, 58%, 31%)
HSVhsv(249, 73%, 48%)
CMYKcmyk(62.6%, 73.2%, 0%, 51.8%)
CIE-LABlab(20.43, 33.32, -49.06)
CIE-LCHlch(20.43, 59.30, 304.18°)
OKLaboklab(32.85% 0.0288 -0.1414)
OKLCHoklch(32.85% 0.144 281.5)
XYZxyz(5.2446, 3.0982, 19.0567)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E217B #6E7B21
analogous
#21417B #2E217B #5B217B
triadic
#2E217B #7B2E21 #217B2E
tetradic
#2E217B #7B2141 #6E7B21 #217B5B
square
#2E217B #7B2141 #6E7B21 #217B5B
split-complementary
#2E217B #7B5B21 #417B21
monochromatic
#0A071A #1C144B #2E217B #402EAB #5C48CE

Accessibility & contrast

On white

12.96
#2E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E217B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E217B#FFFFFF#000000##FFFFFF
##2E217B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e217b;
/* rgb */ color: rgb(46, 33, 123);
/* oklch */ color: oklch(32.8% 0.144 281.5);
Tailwind
colors: {
  custom: {
    50: '#715ea2',
    500: '#2e217b',
    950: '#000000',
  },
}
SCSS
$custom: #2e217b;
$custom-light: #715ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e217b",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 248.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.14428,
    "h": 281.5
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#2E217B
secondary
#9FAE4A
accent
#E147CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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