#2F1667#2F1667

#2F1667 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.131 H 289.9°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#2F1667
RGBrgb(47, 22, 103)
HSLhsl(259, 65%, 25%)
HSVhsv(259, 79%, 40%)
CMYKcmyk(54.4%, 78.6%, 0%, 59.6%)
CIE-LABlab(16.29, 33.37, -42.91)
CIE-LCHlch(16.29, 54.35, 307.87°)
OKLaboklab(29.33% 0.0447 -0.1233)
OKLCHoklch(29.33% 0.131 289.9)
XYZxyz(3.9067, 2.1573, 13.0399)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1667 #4E6716
analogous
#162567 #2F1667 #581667
triadic
#2F1667 #672F16 #16672F
tetradic
#2F1667 #671625 #4E6716 #166758
square
#2F1667 #671625 #4E6716 #166758
split-complementary
#2F1667 #675816 #256716
monochromatic
#0C0519 #180B35 #2F1667 #462199 #5D2CCC

Accessibility & contrast

On white

14.67
#2F1667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1667
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1667#FFFFFF#000000##FFFFFF
##2F16671.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#1B2C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1667;
/* rgb */ color: rgb(47, 22, 103);
/* oklch */ color: oklch(29.3% 0.131 289.9);
Tailwind
colors: {
  custom: {
    50: '#6e5693',
    500: '#2f1667',
    950: '#000000',
  },
}
SCSS
$custom: #2f1667;
$custom-light: #6e5693;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1667",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 258.519,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29329,
    "c": 0.13112,
    "h": 289.9
  },
  "luminance": 0.02157
}

Semantic roles & 50–950 ramp

primary
#2F1667
secondary
#7F9E3B
accent
#E840B4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1667

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

Preview Lab → · Contrast checker → · Palette generator →

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