#2F1C7F#2F1C7F

#2F1C7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.155 H 282.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1C7F
RGBrgb(47, 28, 127)
HSLhsl(252, 64%, 30%)
HSVhsv(252, 78%, 50%)
CMYKcmyk(63%, 78%, 0%, 50.2%)
CIE-LABlab(19.91, 37.63, -52.46)
CIE-LCHlch(19.91, 64.56, 305.66°)
OKLaboklab(32.62% 0.0332 -0.1513)
OKLCHoklch(32.62% 0.155 282.4)
XYZxyz(5.4171, 2.9668, 20.3617)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C7F #6C7F1C
analogous
#1C3A7F #2F1C7F #601C7F
triadic
#2F1C7F #7F2F1C #1C7F2F
tetradic
#2F1C7F #7F1C3A #6C7F1C #1C7F60
square
#2F1C7F #7F1C3A #6C7F1C #1C7F60
split-complementary
#2F1C7F #7F601C #3A7F1C
monochromatic
#0A061B #1C114D #2F1C7F #4227B1 #5D40D5

Accessibility & contrast

On white

13.18
#2F1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C7F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C7F#FFFFFF#000000##FFFFFF
##2F1C7F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1c7f;
/* rgb */ color: rgb(47, 28, 127);
/* oklch */ color: oklch(32.6% 0.155 282.4);
Tailwind
colors: {
  custom: {
    50: '#735ba5',
    500: '#2f1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c7f;
$custom-light: #735ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c7f",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 251.515,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32623,
    "c": 0.15486,
    "h": 282.4
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#2F1C7F
secondary
#9DB344
accent
#E741C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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