#2F1B7F#2F1B7F

#2F1B7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.156 H 282.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2F1B7F
RGBrgb(47, 27, 127)
HSLhsl(252, 65%, 30%)
HSVhsv(252, 79%, 50%)
CMYKcmyk(63%, 78.7%, 0%, 50.2%)
CIE-LABlab(19.72, 38.17, -52.77)
CIE-LCHlch(19.72, 65.13, 305.88°)
OKLaboklab(32.49% 0.0339 -0.1522)
OKLCHoklch(32.49% 0.156 282.6)
XYZxyz(5.3938, 2.9201, 20.3540)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B7F #6B7F1B
analogous
#1B397F #2F1B7F #611B7F
triadic
#2F1B7F #7F2F1B #1B7F2F
tetradic
#2F1B7F #7F1B39 #6B7F1B #1B7F61
square
#2F1B7F #7F1B39 #6B7F1B #1B7F61
split-complementary
#2F1B7F #7F611B #397F1B
monochromatic
#0A061A #1C104D #2F1B7F #4226B1 #5D3ED6

Accessibility & contrast

On white

13.26
#2F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B7F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B7F#FFFFFF#000000##FFFFFF
##2F1B7F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1b7f;
/* rgb */ color: rgb(47, 27, 127);
/* oklch */ color: oklch(32.5% 0.156 282.6);
Tailwind
colors: {
  custom: {
    50: '#735aa5',
    500: '#2f1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b7f;
$custom-light: #735aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b7f",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 252,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3249,
    "c": 0.15589,
    "h": 282.6
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#2F1B7F
secondary
#9CB343
accent
#E840C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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