#2F0F4E#2F0F4E

#2F0F4E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 302.5°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2F0F4E
RGBrgb(47, 15, 78)
HSLhsl(270, 68%, 18%)
HSVhsv(270, 81%, 31%)
CMYKcmyk(39.7%, 80.8%, 0%, 69.4%)
CIE-LABlab(12.58, 29.70, -32.16)
CIE-LCHlch(12.58, 43.77, 312.72°)
OKLaboklab(25.97% 0.0583 -0.0917)
OKLCHoklch(25.97% 0.109 302.5)
XYZxyz(2.7179, 1.4960, 7.3518)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F4E #2E4E0F
analogous
#0F0F4E #2F0F4E #4E0F4D
triadic
#2F0F4E #4E2F0F #0F4E2F
tetradic
#2F0F4E #4E0F0F #2E4E0F #0F4D4E
square
#2F0F4E #4E0F0F #2E4E0F #0F4D4E
split-complementary
#2F0F4E #4D4E0F #0F4E0F
monochromatic
#0F051A #10051B #2F0F4E #4E1981 #6D23B5

Accessibility & contrast

On white

16.16
#2F0F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F4E
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F4E#FFFFFF#000000##FFFFFF
##2F0F4E1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#291F2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0f4e;
/* rgb */ color: rgb(47, 15, 78);
/* oklch */ color: oklch(26.0% 0.109 302.5);
Tailwind
colors: {
  custom: {
    50: '#6b5180',
    500: '#2f0f4e',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f4e;
$custom-light: #6b5180;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f4e",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 270.476,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25971,
    "c": 0.10865,
    "h": 302.5
  },
  "luminance": 0.01496
}

Semantic roles & 50–950 ramp

primary
#2F0F4E
secondary
#5C8831
accent
#EB3D93
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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