#2F1764#2F1764

#2F1764 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.126 H 290.7°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2F1764
RGBrgb(47, 23, 100)
HSLhsl(259, 63%, 24%)
HSVhsv(259, 77%, 39%)
CMYKcmyk(53%, 77%, 0%, 60.8%)
CIE-LABlab(16.19, 31.89, -41.10)
CIE-LCHlch(16.19, 52.02, 307.81°)
OKLaboklab(29.17% 0.0445 -0.118)
OKLCHoklch(29.17% 0.126 290.7)
XYZxyz(3.7783, 2.1371, 12.2675)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1764 #4C6417
analogous
#172664 #2F1764 #561764
triadic
#2F1764 #642F17 #17642F
tetradic
#2F1764 #641726 #4C6417 #176456
square
#2F1764 #641726 #4C6417 #176456
split-complementary
#2F1764 #645617 #266417
monochromatic
#0C0619 #180C32 #2F1764 #462296 #5E2EC8

Accessibility & contrast

On white

14.71
#2F1764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1764
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1764#FFFFFF#000000##FFFFFF
##2F17641.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#1D2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1764;
/* rgb */ color: rgb(47, 23, 100);
/* oklch */ color: oklch(29.2% 0.126 290.7);
Tailwind
colors: {
  custom: {
    50: '#6e5691',
    500: '#2f1764',
    950: '#000000',
  },
}
SCSS
$custom: #2f1764;
$custom-light: #6e5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1764",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 258.701,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29167,
    "c": 0.12609,
    "h": 290.7
  },
  "luminance": 0.02137
}

Semantic roles & 50–950 ramp

primary
#2F1764
secondary
#7D9A3C
accent
#E642B3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1764

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

Preview Lab → · Contrast checker → · Palette generator →

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