#2F1668#2F1668

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

Color values

HEX#2F1668
RGBrgb(47, 22, 104)
HSLhsl(258, 65%, 25%)
HSVhsv(258, 79%, 41%)
CMYKcmyk(54.8%, 78.8%, 0%, 59.2%)
CIE-LABlab(16.39, 33.67, -43.40)
CIE-LCHlch(16.39, 54.93, 307.81°)
OKLaboklab(29.43% 0.0444 -0.1247)
OKLCHoklch(29.43% 0.132 289.6)
XYZxyz(3.9572, 2.1775, 13.3058)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1668 #4F6816
analogous
#162668 #2F1668 #581668
triadic
#2F1668 #682F16 #16682F
tetradic
#2F1668 #681626 #4F6816 #166858
square
#2F1668 #681626 #4F6816 #166858
split-complementary
#2F1668 #685816 #266816
monochromatic
#0B0519 #180B35 #2F1668 #46219B #5D2BCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1668#FFFFFF#000000##FFFFFF
##2F16681.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)
#002A6A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#1A2C3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1668;
/* rgb */ color: rgb(47, 22, 104);
/* oklch */ color: oklch(29.4% 0.132 289.6);
Tailwind
colors: {
  custom: {
    50: '#6f5694',
    500: '#2f1668',
    950: '#000000',
  },
}
SCSS
$custom: #2f1668;
$custom-light: #6f5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1668",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 258.293,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.2943,
    "c": 0.13238,
    "h": 289.6
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#2F1668
secondary
#809F3B
accent
#E840B5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1668

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

Preview Lab → · Contrast checker → · Palette generator →

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