#2F1766#2F1766

#2F1766 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.129 H 290.0°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2F1766
RGBrgb(47, 23, 102)
HSLhsl(258, 63%, 25%)
HSVhsv(258, 77%, 40%)
CMYKcmyk(53.9%, 77.5%, 0%, 60%)
CIE-LABlab(16.39, 32.51, -42.09)
CIE-LCHlch(16.39, 53.19, 307.68°)
OKLaboklab(29.37% 0.044 -0.1209)
OKLCHoklch(29.37% 0.129 290)
XYZxyz(3.8763, 2.1763, 12.7836)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1766 #4E6617
analogous
#172766 #2F1766 #571766
triadic
#2F1766 #662F17 #17662F
tetradic
#2F1766 #661727 #4E6617 #176657
square
#2F1766 #661727 #4E6617 #176657
split-complementary
#2F1766 #665717 #276617
monochromatic
#0C0619 #180C34 #2F1766 #462298 #5D2ECA

Accessibility & contrast

On white

14.63
#2F1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F1766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1766
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1766#FFFFFF#000000##FFFFFF
##2F17661.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1B2C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1766;
/* rgb */ color: rgb(47, 23, 102);
/* oklch */ color: oklch(29.4% 0.129 290.0);
Tailwind
colors: {
  custom: {
    50: '#6e5792',
    500: '#2f1766',
    950: '#000000',
  },
}
SCSS
$custom: #2f1766;
$custom-light: #6e5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1766",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 258.228,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29365,
    "c": 0.12866,
    "h": 290
  },
  "luminance": 0.02176
}

Semantic roles & 50–950 ramp

primary
#2F1766
secondary
#7F9C3C
accent
#E642B4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1766

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

Preview Lab → · Contrast checker → · Palette generator →

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