#2F1656#2F1656

#2F1656 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.109 H 296.5°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1656
RGBrgb(47, 22, 86)
HSLhsl(263, 59%, 21%)
HSVhsv(263, 74%, 34%)
CMYKcmyk(45.3%, 74.4%, 0%, 66.3%)
CIE-LABlab(14.68, 28.17, -34.21)
CIE-LCHlch(14.68, 44.31, 309.47°)
OKLaboklab(27.69% 0.0486 -0.0977)
OKLCHoklch(27.69% 0.109 296.5)
XYZxyz(3.1385, 1.8500, 8.9940)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1656 #3D5616
analogous
#161D56 #2F1656 #4F1656
triadic
#2F1656 #562F16 #16562F
tetradic
#2F1656 #56161D #3D5616 #16564F
square
#2F1656 #56161D #3D5616 #16564F
split-complementary
#2F1656 #564F16 #1D5616
monochromatic
#0D0618 #140A25 #2F1656 #4A2287 #642FB7

Accessibility & contrast

On white

15.33
#2F1656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1656
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1656#FFFFFF#000000##FFFFFF
##2F16561.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#252634
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1656;
/* rgb */ color: rgb(47, 22, 86);
/* oklch */ color: oklch(27.7% 0.109 296.5);
Tailwind
colors: {
  custom: {
    50: '#6c5586',
    500: '#2f1656',
    950: '#000000',
  },
}
SCSS
$custom: #2f1656;
$custom-light: #6c5586;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1656",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 263.438,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27687,
    "c": 0.10916,
    "h": 296.5
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#2F1656
secondary
#6D8D3A
accent
#E245A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1656

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

Preview Lab → · Contrast checker → · Palette generator →

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