#2F0843#2F0843

#2F0843 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.105 H 310.8°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#2F0843
RGBrgb(47, 8, 67)
HSLhsl(280, 79%, 15%)
HSVhsv(280, 88%, 26%)
CMYKcmyk(29.9%, 88.1%, 0%, 73.7%)
CIE-LABlab(10.43, 30.09, -27.99)
CIE-LCHlch(10.43, 41.10, 317.08°)
OKLaboklab(24.15% 0.0685 -0.0793)
OKLCHoklch(24.15% 0.105 310.8)
XYZxyz(2.2720, 1.1833, 5.4178)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0843 #1C4308
analogous
#120843 #2F0843 #43083A
triadic
#2F0843 #432F08 #08432F
tetradic
#2F0843 #431208 #1C4308 #083A43
square
#2F0843 #431208 #1C4308 #083A43
split-complementary
#2F0843 #3A4308 #084312
monochromatic
#13031B #13031B #2F0843 #550F7A #7C15B0

Accessibility & contrast

On white

16.98
#2F0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F0843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0843
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0843#FFFFFF#000000##FFFFFF
##2F08431.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B45
Deuteranopia (green-blind)
#001D42
Tritanopia (blue-blind)
#2C1725
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0843;
/* rgb */ color: rgb(47, 8, 67);
/* oklch */ color: oklch(24.1% 0.105 310.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d78',
    500: '#2f0843',
    950: '#000000',
  },
}
SCSS
$custom: #2f0843;
$custom-light: #6b4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0843",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 279.661,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24147,
    "c": 0.10483,
    "h": 310.8
  },
  "luminance": 0.01183
}

Semantic roles & 50–950 ramp

primary
#2F0843
secondary
#458125
accent
#F53375
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0843

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

Preview Lab → · Contrast checker → · Palette generator →

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