#2F1361#2F1361

#2F1361 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.127 H 292.7°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2F1361
RGBrgb(47, 19, 97)
HSLhsl(262, 67%, 23%)
HSVhsv(262, 80%, 38%)
CMYKcmyk(51.5%, 80.4%, 0%, 62%)
CIE-LABlab(15.13, 33.14, -40.84)
CIE-LCHlch(15.13, 52.59, 309.05°)
OKLaboklab(28.33% 0.0491 -0.1172)
OKLCHoklch(28.33% 0.127 292.7)
XYZxyz(3.5622, 1.9330, 11.4924)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1361 #456113
analogous
#131E61 #2F1361 #561361
triadic
#2F1361 #612F13 #13612F
tetradic
#2F1361 #61131E #456113 #136156
square
#2F1361 #61131E #456113 #136156
split-complementary
#2F1361 #615613 #1E6113
monochromatic
#0C051A #16092E #2F1361 #481D94 #6127C7

Accessibility & contrast

On white

15.14
#2F1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1361
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1361#FFFFFF#000000##FFFFFF
##2F13611.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#1F2839
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1361;
/* rgb */ color: rgb(47, 19, 97);
/* oklch */ color: oklch(28.3% 0.127 292.7);
Tailwind
colors: {
  custom: {
    50: '#6e548f',
    500: '#2f1361',
    950: '#000000',
  },
}
SCSS
$custom: #2f1361;
$custom-light: #6e548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1361",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 261.538,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28329,
    "c": 0.12707,
    "h": 292.7
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#2F1361
secondary
#769937
accent
#EA3EAC
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1361

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

Preview Lab → · Contrast checker → · Palette generator →

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