#2F1054#2F1054

#2F1054 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.115 H 299.1°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2F1054
RGBrgb(47, 16, 84)
HSLhsl(267, 68%, 20%)
HSVhsv(267, 81%, 33%)
CMYKcmyk(44%, 81%, 0%, 67.1%)
CIE-LABlab(13.32, 30.88, -35.06)
CIE-LCHlch(13.32, 46.72, 311.37°)
OKLaboklab(26.67% 0.0557 -0.1002)
OKLCHoklch(26.67% 0.115 299.1)
XYZxyz(2.9574, 1.6150, 8.5417)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1054 #355410
analogous
#101354 #2F1054 #511054
triadic
#2F1054 #542F10 #10542F
tetradic
#2F1054 #541013 #355410 #105451
square
#2F1054 #541013 #355410 #105451
split-complementary
#2F1054 #545110 #135410
monochromatic
#0E051A #120621 #2F1054 #4C1A87 #6924BB

Accessibility & contrast

On white

15.87
#2F1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1054
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1054#FFFFFF#000000##FFFFFF
##2F10541.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#262231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1054;
/* rgb */ color: rgb(47, 16, 84);
/* oklch */ color: oklch(26.7% 0.115 299.1);
Tailwind
colors: {
  custom: {
    50: '#6c5285',
    500: '#2f1054',
    950: '#000000',
  },
}
SCSS
$custom: #2f1054;
$custom-light: #6c5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1054",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 267.353,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26666,
    "c": 0.11465,
    "h": 299.1
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#2F1054
secondary
#648E32
accent
#EB3D9C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1054

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

Preview Lab → · Contrast checker → · Palette generator →

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