#2F1150#2F1150

#2F1150 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.108 H 300.9°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1150
RGBrgb(47, 17, 80)
HSLhsl(269, 65%, 19%)
HSVhsv(269, 79%, 31%)
CMYKcmyk(41.3%, 78.8%, 0%, 68.6%)
CIE-LABlab(13.13, 29.22, -32.64)
CIE-LCHlch(13.13, 43.80, 311.83°)
OKLaboklab(26.42% 0.0556 -0.0931)
OKLCHoklch(26.42% 0.108 300.9)
XYZxyz(2.8204, 1.5844, 7.7451)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1150 #325011
analogous
#111350 #2F1150 #4F1150
triadic
#2F1150 #502F11 #11502F
tetradic
#2F1150 #501113 #325011 #11504F
square
#2F1150 #501113 #325011 #11504F
split-complementary
#2F1150 #504F11 #135011
monochromatic
#0F0519 #11061E #2F1150 #4D1C82 #6A26B5

Accessibility & contrast

On white

15.95
#2F1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1150
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1150#FFFFFF#000000##FFFFFF
##2F11501.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#28212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1150;
/* rgb */ color: rgb(47, 17, 80);
/* oklch */ color: oklch(26.4% 0.108 300.9);
Tailwind
colors: {
  custom: {
    50: '#6b5282',
    500: '#2f1150',
    950: '#000000',
  },
}
SCSS
$custom: #2f1150;
$custom-light: #6b5282;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1150",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 268.571,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26419,
    "c": 0.10844,
    "h": 300.9
  },
  "luminance": 0.01584
}

Semantic roles & 50–950 ramp

primary
#2F1150
secondary
#608933
accent
#E84098
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1150

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

Preview Lab → · Contrast checker → · Palette generator →

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