#2E206F#2E206F

#2E206F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.5% C 0.129 H 284.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2E206F
RGBrgb(46, 32, 111)
HSLhsl(251, 55%, 28%)
HSVhsv(251, 71%, 44%)
CMYKcmyk(58.6%, 71.2%, 0%, 56.5%)
CIE-LABlab(19.06, 29.91, -43.60)
CIE-LCHlch(19.06, 52.87, 304.45°)
OKLaboklab(31.51% 0.0319 -0.1254)
OKLCHoklch(31.51% 0.129 284.3)
XYZxyz(4.5116, 2.7613, 15.3311)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E206F #616F20
analogous
#20396F #2E206F #55206F
triadic
#2E206F #6F2E20 #206F2E
tetradic
#2E206F #6F2039 #616F20 #206F55
square
#2E206F #6F2039 #616F20 #206F55
split-complementary
#2E206F #6F5520 #396F20
monochromatic
#0A0718 #1A123F #2E206F #422E9F #5941C8

Accessibility & contrast

On white

13.53
#2E206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E206F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E206F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E206F#FFFFFF#000000##FFFFFF
##2E206F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#0F3444
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e206f;
/* rgb */ color: rgb(46, 32, 111);
/* oklch */ color: oklch(31.5% 0.129 284.3);
Tailwind
colors: {
  custom: {
    50: '#6e5d99',
    500: '#2e206f',
    950: '#000000',
  },
}
SCSS
$custom: #2e206f;
$custom-light: #6e5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#2e206f",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 250.633,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31512,
    "c": 0.12937,
    "h": 284.3
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#2E206F
secondary
#93A348
accent
#DF49C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E206F

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

Preview Lab → · Contrast checker → · Palette generator →

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