#2F0F4D#2F0F4D

#2F0F4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.107 H 303.0°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#2F0F4D
RGBrgb(47, 15, 77)
HSLhsl(271, 67%, 18%)
HSVhsv(271, 81%, 30%)
CMYKcmyk(39%, 80.5%, 0%, 69.8%)
CIE-LABlab(12.49, 29.42, -31.62)
CIE-LCHlch(12.49, 43.19, 312.94°)
OKLaboklab(25.88% 0.0585 -0.0901)
OKLCHoklch(25.88% 0.107 303)
XYZxyz(2.6824, 1.4818, 7.1644)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F4D #2D4D0F
analogous
#100F4D #2F0F4D #4D0F4C
triadic
#2F0F4D #4D2F0F #0F4D2F
tetradic
#2F0F4D #4D100F #2D4D0F #0F4C4D
square
#2F0F4D #4D100F #2D4D0F #0F4C4D
split-complementary
#2F0F4D #4C4D0F #0F4D10
monochromatic
#10051A #10051A #2F0F4D #4E1980 #6E23B3

Accessibility & contrast

On white

16.20
#2F0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F4D
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F4D#FFFFFF#000000##FFFFFF
##2F0F4D1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#291E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0f4d;
/* rgb */ color: rgb(47, 15, 77);
/* oklch */ color: oklch(25.9% 0.107 303.0);
Tailwind
colors: {
  custom: {
    50: '#6b517f',
    500: '#2f0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f4d;
$custom-light: #6b517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f4d",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 270.968,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25879,
    "c": 0.10743,
    "h": 303
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#2F0F4D
secondary
#5B8731
accent
#EA3E91
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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