#2F1051#2F1051

#2F1051 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.111 H 300.6°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2F1051
RGBrgb(47, 16, 81)
HSLhsl(269, 67%, 19%)
HSVhsv(269, 80%, 32%)
CMYKcmyk(42%, 80.2%, 0%, 68.2%)
CIE-LABlab(13.04, 30.02, -33.47)
CIE-LCHlch(13.04, 44.97, 311.89°)
OKLaboklab(26.38% 0.0565 -0.0955)
OKLCHoklch(26.38% 0.111 300.6)
XYZxyz(2.8424, 1.5690, 7.9361)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1051 #325110
analogous
#101251 #2F1051 #501051
triadic
#2F1051 #512F10 #10512F
tetradic
#2F1051 #511012 #325110 #105150
square
#2F1051 #511012 #325110 #105150
split-complementary
#2F1051 #515010 #125110
monochromatic
#0F051A #11061E #2F1051 #4D1A84 #6A24B7

Accessibility & contrast

On white

15.98
#2F1051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F1051 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1051
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1051#FFFFFF#000000##FFFFFF
##2F10511.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#27202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1051;
/* rgb */ color: rgb(47, 16, 81);
/* oklch */ color: oklch(26.4% 0.111 300.6);
Tailwind
colors: {
  custom: {
    50: '#6b5182',
    500: '#2f1051',
    950: '#000000',
  },
}
SCSS
$custom: #2f1051;
$custom-light: #6b5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1051",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 268.615,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2638,
    "c": 0.11099,
    "h": 300.6
  },
  "luminance": 0.01569
}

Semantic roles & 50–950 ramp

primary
#2F1051
secondary
#608B32
accent
#EA3E98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1051

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

Preview Lab → · Contrast checker → · Palette generator →

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