#2E217C#2E217C

#2E217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.146 H 281.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2E217C
RGBrgb(46, 33, 124)
HSLhsl(249, 58%, 31%)
HSVhsv(249, 73%, 49%)
CMYKcmyk(62.9%, 73.4%, 0%, 51.4%)
CIE-LABlab(20.53, 33.65, -49.53)
CIE-LCHlch(20.53, 59.88, 304.19°)
OKLaboklab(32.95% 0.0286 -0.1428)
OKLCHoklch(32.95% 0.146 281.3)
XYZxyz(5.3075, 3.1234, 19.3881)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E217C #6F7C21
analogous
#21417C #2E217C #5B217C
triadic
#2E217C #7C2E21 #217C2E
tetradic
#2E217C #7C2141 #6F7C21 #217C5B
square
#2E217C #7C2141 #6F7C21 #217C5B
split-complementary
#2E217C #7C5B21 #417C21
monochromatic
#0A071B #1C144C #2E217C #402EAC #5C49CF

Accessibility & contrast

On white

12.92
#2E217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E217C
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E217C#FFFFFF#000000##FFFFFF
##2E217C1.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e217c;
/* rgb */ color: rgb(46, 33, 124);
/* oklch */ color: oklch(32.9% 0.146 281.3);
Tailwind
colors: {
  custom: {
    50: '#715ea3',
    500: '#2e217c',
    950: '#000000',
  },
}
SCSS
$custom: #2e217c;
$custom-light: #715ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e217c",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 248.571,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32947,
    "c": 0.1456,
    "h": 281.3
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#2E217C
secondary
#A0AF4A
accent
#E147CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E217C

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

Preview Lab → · Contrast checker → · Palette generator →

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