#2F1140#2F1140

#2F1140 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.088 H 311.0°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2F1140
RGBrgb(47, 17, 64)
HSLhsl(278, 58%, 16%)
HSVhsv(278, 73%, 25%)
CMYKcmyk(26.6%, 73.4%, 0%, 74.9%)
CIE-LABlab(11.79, 24.78, -23.67)
CIE-LCHlch(11.79, 34.27, 316.31°)
OKLaboklab(25.04% 0.058 -0.0667)
OKLCHoklch(25.04% 0.088 311)
XYZxyz(2.2980, 1.3755, 4.9939)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1140 #224011
analogous
#171140 #2F1140 #401139
triadic
#2F1140 #402F11 #11402F
tetradic
#2F1140 #401711 #224011 #113940
square
#2F1140 #401711 #224011 #113940
split-complementary
#2F1140 #394011 #114017
monochromatic
#120618 #120618 #2F1140 #531E70 #762BA1

Accessibility & contrast

On white

16.47
#2F1140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F1140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1140
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1140#FFFFFF#000000##FFFFFF
##2F11401.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#2D1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1140;
/* rgb */ color: rgb(47, 17, 64);
/* oklch */ color: oklch(25.0% 0.088 311.0);
Tailwind
colors: {
  custom: {
    50: '#6a5175',
    500: '#2f1140',
    950: '#000000',
  },
}
SCSS
$custom: #2f1140;
$custom-light: #6a5175;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1140",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 278.298,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25036,
    "c": 0.08842,
    "h": 311
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#2F1140
secondary
#4D7933
accent
#E1477F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1140

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

Preview Lab → · Contrast checker → · Palette generator →

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