#2F1D60#2F1D60

#2F1D60 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.113 H 290.2°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1D60
RGBrgb(47, 29, 96)
HSLhsl(256, 54%, 25%)
HSVhsv(256, 70%, 38%)
CMYKcmyk(51%, 69.8%, 0%, 62.4%)
CIE-LABlab(17.12, 27.04, -36.93)
CIE-LCHlch(17.12, 45.77, 306.21°)
OKLaboklab(29.72% 0.0389 -0.1058)
OKLCHoklch(29.72% 0.113 290.2)
XYZxyz(3.7224, 2.3275, 11.3172)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D60 #4E601D
analogous
#1D2D60 #2F1D60 #511D60
triadic
#2F1D60 #602F1D #1D602F
tetradic
#2F1D60 #601D2D #4E601D #1D6051
square
#2F1D60 #601D2D #4E601D #1D6051
split-complementary
#2F1D60 #60511D #2D601D
monochromatic
#0C0718 #180F31 #2F1D60 #462B8F #5D39BE

Accessibility & contrast

On white

14.33
#2F1D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1D60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D60
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D60#FFFFFF#000000##FFFFFF
##2F1D601.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#1F2D3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1d60;
/* rgb */ color: rgb(47, 29, 96);
/* oklch */ color: oklch(29.7% 0.113 290.2);
Tailwind
colors: {
  custom: {
    50: '#6d5a8e',
    500: '#2f1d60',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d60;
$custom-light: #6d5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d60",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 96
  },
  "hsl": {
    "h": 256.119,
    "s": 53.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29716,
    "c": 0.11268,
    "h": 290.2
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#2F1D60
secondary
#7F9544
accent
#DD4BB6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F1D60

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

Preview Lab → · Contrast checker → · Palette generator →

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