#2F1650#2F1650

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

Color values

HEX#2F1650
RGBrgb(47, 22, 80)
HSLhsl(266, 57%, 20%)
HSVhsv(266, 73%, 31%)
CMYKcmyk(41.3%, 72.5%, 0%, 68.6%)
CIE-LABlab(14.16, 26.37, -30.97)
CIE-LCHlch(14.16, 40.68, 310.41°)
OKLaboklab(27.15% 0.0496 -0.0882)
OKLCHoklch(27.15% 0.101 299.3)
XYZxyz(2.9068, 1.7573, 7.7739)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1650 #375016
analogous
#161A50 #2F1650 #4C1650
triadic
#2F1650 #502F16 #16502F
tetradic
#2F1650 #50161A #375016 #16504C
square
#2F1650 #50161A #375016 #16504C
split-complementary
#2F1650 #504C16 #1A5016
monochromatic
#0E0718 #130920 #2F1650 #4B2380 #6730B0

Accessibility & contrast

On white

15.54
#2F1650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1650
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1650#FFFFFF#000000##FFFFFF
##2F16501.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#272330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1650;
/* rgb */ color: rgb(47, 22, 80);
/* oklch */ color: oklch(27.2% 0.101 299.3);
Tailwind
colors: {
  custom: {
    50: '#6b5582',
    500: '#2f1650',
    950: '#000000',
  },
}
SCSS
$custom: #2f1650;
$custom-light: #6b5582;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1650",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 80
  },
  "hsl": {
    "h": 265.862,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.2715,
    "c": 0.10121,
    "h": 299.3
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#2F1650
secondary
#66873A
accent
#E0489E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1650

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

Preview Lab → · Contrast checker → · Palette generator →

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