#2F1E4E#2F1E4E

#2F1E4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.085 H 297.0°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2F1E4E
RGBrgb(47, 30, 78)
HSLhsl(261, 44%, 21%)
HSVhsv(261, 62%, 31%)
CMYKcmyk(39.7%, 61.5%, 0%, 69.4%)
CIE-LABlab(15.92, 20.64, -26.77)
CIE-LCHlch(15.92, 33.81, 307.64°)
OKLaboklab(28.38% 0.0386 -0.0759)
OKLCHoklch(28.38% 0.085 297)
XYZxyz(3.0114, 2.0829, 7.4496)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E4E #3D4E1E
analogous
#1E254E #2F1E4E #471E4E
triadic
#2F1E4E #4E2F1E #1E4E2F
tetradic
#2F1E4E #4E1E25 #3D4E1E #1E4E47
square
#2F1E4E #4E1E25 #3D4E1E #1E4E47
split-complementary
#2F1E4E #4E471E #254E1E
monochromatic
#0D0916 #140D22 #2F1E4E #4A2F7A #6440A6

Accessibility & contrast

On white

14.82
#2F1E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E4E
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E4E#FFFFFF#000000##FFFFFF
##2F1E4E1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082850
Deuteranopia (green-blind)
#0E274D
Tritanopia (blue-blind)
#282832
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1e4e;
/* rgb */ color: rgb(47, 30, 78);
/* oklch */ color: oklch(28.4% 0.085 297.0);
Tailwind
colors: {
  custom: {
    50: '#6a5a80',
    500: '#2f1e4e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e4e;
$custom-light: #6a5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e4e",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 261.25,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2838,
    "c": 0.08516,
    "h": 297
  },
  "luminance": 0.02083
}

Semantic roles & 50–950 ramp

primary
#2F1E4E
secondary
#6D8345
accent
#D454A7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2F1E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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