#2F1D4E#2F1D4E

#2F1D4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.087 H 297.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2F1D4E
RGBrgb(47, 29, 78)
HSLhsl(262, 46%, 21%)
HSVhsv(262, 63%, 31%)
CMYKcmyk(39.7%, 62.8%, 0%, 69.4%)
CIE-LABlab(15.66, 21.31, -27.18)
CIE-LCHlch(15.66, 34.54, 308.10°)
OKLaboklab(28.19% 0.0401 -0.0771)
OKLCHoklch(28.19% 0.087 297.5)
XYZxyz(2.9865, 2.0331, 7.4413)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D4E #3C4E1D
analogous
#1D234E #2F1D4E #471D4E
triadic
#2F1D4E #4E2F1D #1D4E2F
tetradic
#2F1D4E #4E1D23 #3C4E1D #1D4E47
square
#2F1D4E #4E1D23 #3C4E1D #1D4E47
split-complementary
#2F1D4E #4E471D #234E1D
monochromatic
#0D0816 #140C21 #2F1D4E #4A2E7B #653EA7

Accessibility & contrast

On white

14.93
#2F1D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D4E
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D4E#FFFFFF#000000##FFFFFF
##2F1D4E1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052750
Deuteranopia (green-blind)
#0C274D
Tritanopia (blue-blind)
#282732
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1d4e;
/* rgb */ color: rgb(47, 29, 78);
/* oklch */ color: oklch(28.2% 0.087 297.5);
Tailwind
colors: {
  custom: {
    50: '#6a5980',
    500: '#2f1d4e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d4e;
$custom-light: #6a5980;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d4e",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 262.041,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28191,
    "c": 0.0869,
    "h": 297.5
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#2F1D4E
secondary
#6C8344
accent
#D552A5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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