#2F1052#2F1052

#2F1052 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.112 H 300.1°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1052
RGBrgb(47, 16, 82)
HSLhsl(268, 67%, 19%)
HSVhsv(268, 80%, 32%)
CMYKcmyk(42.7%, 80.5%, 0%, 67.8%)
CIE-LABlab(13.13, 30.31, -34.01)
CIE-LCHlch(13.13, 45.55, 311.71°)
OKLaboklab(26.48% 0.0562 -0.0971)
OKLCHoklch(26.48% 0.112 300.1)
XYZxyz(2.8802, 1.5841, 8.1350)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1052 #335210
analogous
#101252 #2F1052 #501052
triadic
#2F1052 #522F10 #10522F
tetradic
#2F1052 #521012 #335210 #105250
square
#2F1052 #521012 #335210 #105250
split-complementary
#2F1052 #525010 #125210
monochromatic
#0F051A #12061F #2F1052 #4C1A85 #6A24B8

Accessibility & contrast

On white

15.95
#2F1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1052
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1052#FFFFFF#000000##FFFFFF
##2F10521.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#272130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1052;
/* rgb */ color: rgb(47, 16, 82);
/* oklch */ color: oklch(26.5% 0.112 300.1);
Tailwind
colors: {
  custom: {
    50: '#6c5283',
    500: '#2f1052',
    950: '#000000',
  },
}
SCSS
$custom: #2f1052;
$custom-light: #6c5283;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1052",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 268.182,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26475,
    "c": 0.11221,
    "h": 300.1
  },
  "luminance": 0.01584
}

Semantic roles & 50–950 ramp

primary
#2F1052
secondary
#628C32
accent
#EA3E99
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1052

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

Preview Lab → · Contrast checker → · Palette generator →

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