#2F1350#2F1350

#2F1350 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.106 H 300.3°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#2F1350
RGBrgb(47, 19, 80)
HSLhsl(268, 62%, 19%)
HSVhsv(268, 76%, 31%)
CMYKcmyk(41.3%, 76.3%, 0%, 68.6%)
CIE-LABlab(13.53, 28.12, -32.00)
CIE-LCHlch(13.53, 42.60, 311.31°)
OKLaboklab(26.7% 0.0533 -0.0912)
OKLCHoklch(26.7% 0.106 300.3)
XYZxyz(2.8528, 1.6492, 7.7559)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1350 #345013
analogous
#131650 #2F1350 #4E1350
triadic
#2F1350 #502F13 #13502F
tetradic
#2F1350 #501316 #345013 #13504E
square
#2F1350 #501316 #345013 #13504E
split-complementary
#2F1350 #504E13 #165013
monochromatic
#0F0619 #12071F #2F1350 #4C1F81 #692AB3

Accessibility & contrast

On white

15.79
#2F1350 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1350 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1350
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1350#FFFFFF#000000##FFFFFF
##2F13501.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#282230
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1350;
/* rgb */ color: rgb(47, 19, 80);
/* oklch */ color: oklch(26.7% 0.106 300.3);
Tailwind
colors: {
  custom: {
    50: '#6b5382',
    500: '#2f1350',
    950: '#000000',
  },
}
SCSS
$custom: #2f1350;
$custom-light: #6b5382;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1350",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 80
  },
  "hsl": {
    "h": 267.541,
    "s": 61.616,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26698,
    "c": 0.10565,
    "h": 300.3
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#2F1350
secondary
#638936
accent
#E5439B
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1350

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

Preview Lab → · Contrast checker → · Palette generator →

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