#2F1756#2F1756

#2F1756 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.108 H 296.1°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2F1756
RGBrgb(47, 23, 86)
HSLhsl(263, 58%, 21%)
HSVhsv(263, 73%, 34%)
CMYKcmyk(45.3%, 73.3%, 0%, 66.3%)
CIE-LABlab(14.89, 27.58, -33.86)
CIE-LCHlch(14.89, 43.67, 309.17°)
OKLaboklab(27.84% 0.0475 -0.0967)
OKLCHoklch(27.84% 0.108 296.1)
XYZxyz(3.1580, 1.8889, 9.0005)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1756 #3E5617
analogous
#171F56 #2F1756 #4F1756
triadic
#2F1756 #562F17 #17562F
tetradic
#2F1756 #56171F #3E5617 #17564F
square
#2F1756 #56171F #3E5617 #17564F
split-complementary
#2F1756 #564F17 #1F5617
monochromatic
#0D0618 #150A26 #2F1756 #492486 #6431B7

Accessibility & contrast

On white

15.24
#2F1756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1756
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1756#FFFFFF#000000##FFFFFF
##2F17561.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1756;
/* rgb */ color: rgb(47, 23, 86);
/* oklch */ color: oklch(27.8% 0.108 296.1);
Tailwind
colors: {
  custom: {
    50: '#6c5686',
    500: '#2f1756',
    950: '#000000',
  },
}
SCSS
$custom: #2f1756;
$custom-light: #6c5686;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1756",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 262.857,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2784,
    "c": 0.10772,
    "h": 296.1
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#2F1756
secondary
#6E8D3C
accent
#E147A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1756

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

Preview Lab → · Contrast checker → · Palette generator →

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