#2F1652#2F1652

#2F1652 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.104 H 298.3°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2F1652
RGBrgb(47, 22, 82)
HSLhsl(265, 58%, 20%)
HSVhsv(265, 73%, 32%)
CMYKcmyk(42.7%, 73.2%, 0%, 67.8%)
CIE-LABlab(14.33, 26.97, -32.06)
CIE-LCHlch(14.33, 41.89, 310.07°)
OKLaboklab(27.33% 0.0493 -0.0914)
OKLCHoklch(27.33% 0.104 298.3)
XYZxyz(2.9818, 1.7873, 8.1689)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1652 #395216
analogous
#161B52 #2F1652 #4D1652
triadic
#2F1652 #522F16 #16522F
tetradic
#2F1652 #52161B #395216 #16524D
square
#2F1652 #52161B #395216 #16524D
split-complementary
#2F1652 #524D16 #1B5216
monochromatic
#0E0618 #130922 #2F1652 #4B2382 #6630B3

Accessibility & contrast

On white

15.47
#2F1652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1652
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1652#FFFFFF#000000##FFFFFF
##2F16521.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#272432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1652;
/* rgb */ color: rgb(47, 22, 82);
/* oklch */ color: oklch(27.3% 0.104 298.3);
Tailwind
colors: {
  custom: {
    50: '#6b5583',
    500: '#2f1652',
    950: '#000000',
  },
}
SCSS
$custom: #2f1652;
$custom-light: #6b5583;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1652",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 265,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27326,
    "c": 0.10387,
    "h": 298.3
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#2F1652
secondary
#68893A
accent
#E147A1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1652

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

Preview Lab → · Contrast checker → · Palette generator →

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