#2F0D4B#2F0D4B

#2F0D4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.108 H 304.7°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2F0D4B
RGBrgb(47, 13, 75)
HSLhsl(273, 70%, 17%)
HSVhsv(273, 83%, 29%)
CMYKcmyk(37.3%, 82.7%, 0%, 70.6%)
CIE-LABlab(11.96, 29.87, -31.10)
CIE-LCHlch(11.96, 43.12, 313.84°)
OKLaboklab(25.45% 0.0612 -0.0885)
OKLCHoklch(25.45% 0.108 304.7)
XYZxyz(2.5859, 1.4002, 6.7893)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D4B #294B0D
analogous
#100D4B #2F0D4B #4B0D48
triadic
#2F0D4B #4B2F0D #0D4B2F
tetradic
#2F0D4B #4B100D #294B0D #0D484B
square
#2F0D4B #4B100D #294B0D #0D484B
split-complementary
#2F0D4B #484B0D #0D4B10
monochromatic
#10051A #10051A #2F0D4B #50167F #701FB3

Accessibility & contrast

On white

16.41
#2F0D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0D4B
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D4B#FFFFFF#000000##FFFFFF
##2F0D4B1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#2A1C2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0d4b;
/* rgb */ color: rgb(47, 13, 75);
/* oklch */ color: oklch(25.4% 0.108 304.7);
Tailwind
colors: {
  custom: {
    50: '#6b507e',
    500: '#2f0d4b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d4b;
$custom-light: #6b507e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d4b",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 272.903,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25446,
    "c": 0.10765,
    "h": 304.7
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#2F0D4B
secondary
#56862E
accent
#ED3B8B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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