#2E217F#2E217F

#2E217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.150 H 280.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2E217F
RGBrgb(46, 33, 127)
HSLhsl(248, 59%, 31%)
HSVhsv(248, 74%, 50%)
CMYKcmyk(63.8%, 74%, 0%, 50.2%)
CIE-LABlab(20.83, 34.65, -50.95)
CIE-LCHlch(20.83, 61.61, 304.22°)
OKLaboklab(33.25% 0.028 -0.1469)
OKLCHoklch(33.25% 0.15 280.8)
XYZxyz(5.5001, 3.2005, 20.4025)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E217F #727F21
analogous
#21437F #2E217F #5D217F
triadic
#2E217F #7F2E21 #217F2E
tetradic
#2E217F #7F2143 #727F21 #217F5D
square
#2E217F #7F2143 #727F21 #217F5D
split-complementary
#2E217F #7F5D21 #437F21
monochromatic
#0B081E #1C144E #2E217F #402EB0 #5D4AD0

Accessibility & contrast

On white

12.80
#2E217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E217F
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E217F#FFFFFF#000000##FFFFFF
##2E217F1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e217f;
/* rgb */ color: rgb(46, 33, 127);
/* oklch */ color: oklch(33.3% 0.150 280.8);
Tailwind
colors: {
  custom: {
    50: '#725ea5',
    500: '#2e217f',
    950: '#000000',
  },
}
SCSS
$custom: #2e217f;
$custom-light: #725ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e217f",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 248.298,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3325,
    "c": 0.14956,
    "h": 280.8
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E217F

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

Preview Lab → · Contrast checker → · Palette generator →

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