#2F0B4F#2F0B4F

#2F0B4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.115 H 302.8°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2F0B4F
RGBrgb(47, 11, 79)
HSLhsl(272, 76%, 18%)
HSVhsv(272, 86%, 31%)
CMYKcmyk(40.5%, 86.1%, 0%, 69%)
CIE-LABlab(12.01, 31.87, -33.78)
CIE-LCHlch(12.01, 46.44, 313.34°)
OKLaboklab(25.6% 0.0621 -0.0964)
OKLCHoklch(25.6% 0.115 302.8)
XYZxyz(2.7029, 1.4082, 7.5250)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B4F #2B4F0B
analogous
#0D0B4F #2F0B4F #4F0B4D
triadic
#2F0B4F #4F2F0B #0B4F2F
tetradic
#2F0B4F #4F0D0B #2B4F0B #0B4D4F
square
#2F0B4F #4F0D0B #2B4F0B #0B4D4F
split-complementary
#2F0B4F #4D4F0B #0B4F0D
monochromatic
#10041B #10041B #2F0B4F #4F1285 #6F1ABA

Accessibility & contrast

On white

16.39
#2F0B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0B4F
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B4F#FFFFFF#000000##FFFFFF
##2F0B4F1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#281D2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0b4f;
/* rgb */ color: rgb(47, 11, 79);
/* oklch */ color: oklch(25.6% 0.115 302.8);
Tailwind
colors: {
  custom: {
    50: '#6c4f81',
    500: '#2f0b4f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b4f;
$custom-light: #6c4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b4f",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 79
  },
  "hsl": {
    "h": 271.765,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.256,
    "c": 0.11466,
    "h": 302.8
  },
  "luminance": 0.01408
}

Semantic roles & 50–950 ramp

primary
#2F0B4F
secondary
#588B2B
accent
#F2368E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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