#2F1651#2F1651

#2F1651 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.103 H 298.8°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2F1651
RGBrgb(47, 22, 81)
HSLhsl(265, 57%, 20%)
HSVhsv(265, 73%, 32%)
CMYKcmyk(42%, 72.8%, 0%, 68.2%)
CIE-LABlab(14.24, 26.67, -31.52)
CIE-LCHlch(14.24, 41.29, 310.23°)
OKLaboklab(27.24% 0.0495 -0.0898)
OKLCHoklch(27.24% 0.103 298.8)
XYZxyz(2.9440, 1.7722, 7.9699)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1651 #385116
analogous
#161A51 #2F1651 #4D1651
triadic
#2F1651 #512F16 #16512F
tetradic
#2F1651 #51161A #385116 #16514D
square
#2F1651 #51161A #385116 #16514D
split-complementary
#2F1651 #514D16 #1A5116
monochromatic
#0E0718 #130921 #2F1651 #4B2381 #6730B1

Accessibility & contrast

On white

15.51
#2F1651 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1651 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1651
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1651#FFFFFF#000000##FFFFFF
##2F16511.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#272431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1651;
/* rgb */ color: rgb(47, 22, 81);
/* oklch */ color: oklch(27.2% 0.103 298.8);
Tailwind
colors: {
  custom: {
    50: '#6b5582',
    500: '#2f1651',
    950: '#000000',
  },
}
SCSS
$custom: #2f1651;
$custom-light: #6b5582;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1651",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 81
  },
  "hsl": {
    "h": 265.424,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27237,
    "c": 0.10254,
    "h": 298.8
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#2F1651
secondary
#67883A
accent
#E147A0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1651

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

Preview Lab → · Contrast checker → · Palette generator →

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