#2F1340#2F1340

#2F1340 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.085 H 310.4°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1340
RGBrgb(47, 19, 64)
HSLhsl(277, 54%, 16%)
HSVhsv(277, 70%, 25%)
CMYKcmyk(26.6%, 70.3%, 0%, 74.9%)
CIE-LABlab(12.22, 23.60, -22.98)
CIE-LCHlch(12.22, 32.94, 315.77°)
OKLaboklab(25.35% 0.0551 -0.0647)
OKLCHoklch(25.35% 0.085 310.4)
XYZxyz(2.3304, 1.4403, 5.0047)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1340 #244013
analogous
#191340 #2F1340 #40133B
triadic
#2F1340 #402F13 #13402F
tetradic
#2F1340 #401913 #244013 #133B40
square
#2F1340 #401913 #244013 #133B40
split-complementary
#2F1340 #3B4013 #134019
monochromatic
#110718 #110718 #2F1340 #52216F #742F9E

Accessibility & contrast

On white

16.30
#2F1340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1340
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1340#FFFFFF#000000##FFFFFF
##2F13401.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F41
Deuteranopia (green-blind)
#0E203F
Tritanopia (blue-blind)
#2D1C27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1340;
/* rgb */ color: rgb(47, 19, 64);
/* oklch */ color: oklch(25.3% 0.085 310.4);
Tailwind
colors: {
  custom: {
    50: '#695275',
    500: '#2f1340',
    950: '#000000',
  },
}
SCSS
$custom: #2f1340;
$custom-light: #695275;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1340",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 277.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25347,
    "c": 0.08501,
    "h": 310.4
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#2F1340
secondary
#4F7936
accent
#DE4A82
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1340

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

Preview Lab → · Contrast checker → · Palette generator →

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