#3E2270#3E2270

#3E2270 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.128 H 295.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3E2270
RGBrgb(62, 34, 112)
HSLhsl(262, 53%, 29%)
HSVhsv(262, 70%, 44%)
CMYKcmyk(44.6%, 69.6%, 0%, 56.1%)
CIE-LABlab(21.35, 32.20, -40.44)
CIE-LCHlch(21.35, 51.69, 308.53°)
OKLaboklab(33.6% 0.0542 -0.1155)
OKLCHoklch(33.6% 0.128 295.1)
XYZxyz(5.4825, 3.3379, 15.6815)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2270 #547022
analogous
#222D70 #3E2270 #652270
triadic
#3E2270 #703E22 #22703E
tetradic
#3E2270 #70222D #547022 #227065
square
#3E2270 #70222D #547022 #227065
split-complementary
#3E2270 #706522 #2D7022
monochromatic
#0D0717 #241441 #3E2270 #58309F #7446C7

Accessibility & contrast

On white

12.59
#3E2270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E2270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2270
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2270#FFFFFF#000000##FFFFFF
##3E22701.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#313546
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e2270;
/* rgb */ color: rgb(62, 34, 112);
/* oklch */ color: oklch(33.6% 0.128 295.1);
Tailwind
colors: {
  custom: {
    50: '#785f9a',
    500: '#3e2270',
    950: '#000000',
  },
}
SCSS
$custom: #3e2270;
$custom-light: #785f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2270",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 261.538,
    "s": 53.425,
    "l": 28.627
  },
  "oklch": {
    "l": 0.336,
    "c": 0.12759,
    "h": 295.1
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#3E2270
secondary
#83A34A
accent
#DD4BA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2270

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

Preview Lab → · Contrast checker → · Palette generator →

#3E2270 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva