#2F1E72#2F1E72

#2F1E72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.136 H 284.8°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#2F1E72
RGBrgb(47, 30, 114)
HSLhsl(252, 58%, 28%)
HSVhsv(252, 74%, 45%)
CMYKcmyk(58.8%, 73.7%, 0%, 55.3%)
CIE-LABlab(19.00, 32.29, -45.63)
CIE-LCHlch(19.00, 55.90, 305.29°)
OKLaboklab(31.58% 0.0347 -0.1313)
OKLCHoklch(31.58% 0.136 284.8)
XYZxyz(4.6729, 2.7475, 16.2004)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E72 #61721E
analogous
#1E3772 #2F1E72 #591E72
triadic
#2F1E72 #722F1E #1E722F
tetradic
#2F1E72 #721E37 #61721E #1E7259
square
#2F1E72 #721E37 #61721E #1E7259
split-complementary
#2F1E72 #72591E #37721E
monochromatic
#0A0618 #1B1142 #2F1E72 #432BA2 #5B3ECC

Accessibility & contrast

On white

13.55
#2F1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E72
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E72#FFFFFF#000000##FFFFFF
##2F1E721.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#0F3445
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1e72;
/* rgb */ color: rgb(47, 30, 114);
/* oklch */ color: oklch(31.6% 0.136 284.8);
Tailwind
colors: {
  custom: {
    50: '#705b9b',
    500: '#2f1e72',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e72;
$custom-light: #705b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e72",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 252.143,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31582,
    "c": 0.13582,
    "h": 284.8
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#2F1E72
secondary
#93A646
accent
#E246C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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