#2F1655#2F1655

#2F1655 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.108 H 296.9°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2F1655
RGBrgb(47, 22, 85)
HSLhsl(264, 59%, 21%)
HSVhsv(264, 74%, 33%)
CMYKcmyk(44.7%, 74.1%, 0%, 66.7%)
CIE-LABlab(14.59, 27.87, -33.67)
CIE-LCHlch(14.59, 43.71, 309.61°)
OKLaboklab(27.6% 0.0488 -0.0962)
OKLCHoklch(27.6% 0.108 296.9)
XYZxyz(3.0985, 1.8340, 8.7833)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1655 #3C5516
analogous
#161C55 #2F1655 #4E1655
triadic
#2F1655 #552F16 #16552F
tetradic
#2F1655 #55161C #3C5516 #16554E
square
#2F1655 #55161C #3C5516 #16554E
split-complementary
#2F1655 #554E16 #1C5516
monochromatic
#0D0618 #140924 #2F1655 #4A2386 #652FB6

Accessibility & contrast

On white

15.36
#2F1655 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1655
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1655#FFFFFF#000000##FFFFFF
##2F16551.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#252533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1655;
/* rgb */ color: rgb(47, 22, 85);
/* oklch */ color: oklch(27.6% 0.108 296.9);
Tailwind
colors: {
  custom: {
    50: '#6c5585',
    500: '#2f1655',
    950: '#000000',
  },
}
SCSS
$custom: #2f1655;
$custom-light: #6c5585;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1655",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 85
  },
  "hsl": {
    "h": 263.81,
    "s": 58.879,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27596,
    "c": 0.10785,
    "h": 296.9
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#2F1655
secondary
#6C8C3A
accent
#E246A4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1655

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

Preview Lab → · Contrast checker → · Palette generator →

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