#2F0F4F#2F0F4F

#2F0F4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.110 H 301.9°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2F0F4F
RGBrgb(47, 15, 79)
HSLhsl(270, 68%, 18%)
HSVhsv(270, 81%, 31%)
CMYKcmyk(40.5%, 81%, 0%, 69%)
CIE-LABlab(12.67, 29.98, -32.70)
CIE-LCHlch(12.67, 44.36, 312.51°)
OKLaboklab(26.07% 0.0581 -0.0933)
OKLCHoklch(26.07% 0.11 301.9)
XYZxyz(2.7541, 1.5105, 7.5421)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F4F #2F4F0F
analogous
#0F0F4F #2F0F4F #4F0F4F
triadic
#2F0F4F #4F2F0F #0F4F2F
tetradic
#2F0F4F #4F0F0F #2F4F0F #0F4F4F
square
#2F0F4F #4F0F0F #2F4F0F #0F4F4F
split-complementary
#2F0F4F #4F4F0F #0F4F0F
monochromatic
#0F051A #10051C #2F0F4F #4E1982 #6C23B6

Accessibility & contrast

On white

16.13
#2F0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F4F
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F4F#FFFFFF#000000##FFFFFF
##2F0F4F1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#281F2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0f4f;
/* rgb */ color: rgb(47, 15, 79);
/* oklch */ color: oklch(26.1% 0.110 301.9);
Tailwind
colors: {
  custom: {
    50: '#6b5181',
    500: '#2f0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f4f;
$custom-light: #6b5181;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f4f",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 270,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26065,
    "c": 0.10986,
    "h": 301.9
  },
  "luminance": 0.0151
}

Semantic roles & 50–950 ramp

primary
#2F0F4F
secondary
#5D8931
accent
#EB3D94
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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