#2F1E77#2F1E77

#2F1E77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.142 H 283.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2F1E77
RGBrgb(47, 30, 119)
HSLhsl(251, 60%, 29%)
HSVhsv(251, 75%, 47%)
CMYKcmyk(60.5%, 74.8%, 0%, 53.3%)
CIE-LABlab(19.49, 33.93, -48.04)
CIE-LCHlch(19.49, 58.81, 305.23°)
OKLaboklab(32.08% 0.0337 -0.1384)
OKLCHoklch(32.08% 0.142 283.7)
XYZxyz(4.9653, 2.8645, 17.7404)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E77 #66771E
analogous
#1E3A77 #2F1E77 #5C1E77
triadic
#2F1E77 #772F1E #1E772F
tetradic
#2F1E77 #771E3A #66771E #1E775C
square
#2F1E77 #771E3A #66771E #1E775C
split-complementary
#2F1E77 #775C1E #3A771E
monochromatic
#0A0618 #1C1246 #2F1E77 #422AA8 #5C40CF

Accessibility & contrast

On white

13.35
#2F1E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F1E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E77
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E77#FFFFFF#000000##FFFFFF
##2F1E771.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#063648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1e77;
/* rgb */ color: rgb(47, 30, 119);
/* oklch */ color: oklch(32.1% 0.142 283.7);
Tailwind
colors: {
  custom: {
    50: '#715c9f',
    500: '#2f1e77',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e77;
$custom-light: #715c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e77",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 251.461,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3208,
    "c": 0.14239,
    "h": 283.7
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#2F1E77
secondary
#98AB46
accent
#E345C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F1E77

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

Preview Lab → · Contrast checker → · Palette generator →

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