#2E217A#2E217A

#2E217A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.143 H 281.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2E217A
RGBrgb(46, 33, 122)
HSLhsl(249, 57%, 30%)
HSVhsv(249, 73%, 48%)
CMYKcmyk(62.3%, 73%, 0%, 52.2%)
CIE-LABlab(20.34, 32.98, -48.58)
CIE-LCHlch(20.34, 58.72, 304.17°)
OKLaboklab(32.75% 0.029 -0.14)
OKLCHoklch(32.75% 0.143 281.7)
XYZxyz(5.1823, 3.0733, 18.7287)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E217A #6D7A21
analogous
#21407A #2E217A #5A217A
triadic
#2E217A #7A2E21 #217A2E
tetradic
#2E217A #7A2140 #6D7A21 #217A5A
square
#2E217A #7A2140 #6D7A21 #217A5A
split-complementary
#2E217A #7A5A21 #407A21
monochromatic
#0A071A #1C144A #2E217A #402EAA #5B48CD

Accessibility & contrast

On white

13.00
#2E217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E217A
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E217A#FFFFFF#000000##FFFFFF
##2E217A1.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e217a;
/* rgb */ color: rgb(46, 33, 122);
/* oklch */ color: oklch(32.7% 0.143 281.7);
Tailwind
colors: {
  custom: {
    50: '#715ea1',
    500: '#2e217a',
    950: '#000000',
  },
}
SCSS
$custom: #2e217a;
$custom-light: #715ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e217a",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 248.764,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.14296,
    "h": 281.7
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#2E217A
secondary
#9FAD4A
accent
#E147CA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E217A

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

Preview Lab → · Contrast checker → · Palette generator →

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