#2F1043#2F1043

#2F1043 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.094 H 309.1°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1043
RGBrgb(47, 16, 67)
HSLhsl(276, 61%, 16%)
HSVhsv(276, 76%, 26%)
CMYKcmyk(29.9%, 76.1%, 0%, 73.7%)
CIE-LABlab(11.83, 26.15, -25.74)
CIE-LCHlch(11.83, 36.69, 315.46°)
OKLaboklab(25.13% 0.0591 -0.0728)
OKLCHoklch(25.13% 0.094 309.1)
XYZxyz(2.3705, 1.3802, 5.4506)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1043 #244310
analogous
#161043 #2F1043 #43103E
triadic
#2F1043 #432F10 #10432F
tetradic
#2F1043 #431610 #244310 #103E43
square
#2F1043 #431610 #244310 #103E43
split-complementary
#2F1043 #3E4310 #104316
monochromatic
#110619 #110619 #2F1043 #521C74 #7428A6

Accessibility & contrast

On white

16.46
#2F1043 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F1043 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1043
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1043#FFFFFF#000000##FFFFFF
##2F10431.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#072042
Tritanopia (blue-blind)
#2C1B28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1043;
/* rgb */ color: rgb(47, 16, 67);
/* oklch */ color: oklch(25.1% 0.094 309.1);
Tailwind
colors: {
  custom: {
    50: '#6a5177',
    500: '#2f1043',
    950: '#000000',
  },
}
SCSS
$custom: #2f1043;
$custom-light: #6a5177;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1043",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 67
  },
  "hsl": {
    "h": 276.471,
    "s": 61.446,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25134,
    "c": 0.09376,
    "h": 309.1
  },
  "luminance": 0.0138
}

Semantic roles & 50–950 ramp

primary
#2F1043
secondary
#4F7D32
accent
#E54383
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1043

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

Preview Lab → · Contrast checker → · Palette generator →

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