#2F0F45#2F0F45

#2F0F45 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.098 H 308.0°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2F0F45
RGBrgb(47, 15, 69)
HSLhsl(276, 64%, 16%)
HSVhsv(276, 78%, 27%)
CMYKcmyk(31.9%, 78.3%, 0%, 72.9%)
CIE-LABlab(11.79, 27.23, -27.19)
CIE-LCHlch(11.79, 38.48, 315.04°)
OKLaboklab(25.17% 0.0601 -0.0771)
OKLCHoklch(25.17% 0.098 308)
XYZxyz(2.4171, 1.3757, 5.7673)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F45 #25450F
analogous
#140F45 #2F0F45 #450F40
triadic
#2F0F45 #452F0F #0F452F
tetradic
#2F0F45 #45140F #25450F #0F4045
square
#2F0F45 #45140F #25450F #0F4045
split-complementary
#2F0F45 #40450F #0F4514
monochromatic
#110519 #110519 #2F0F45 #511A77 #7325AA

Accessibility & contrast

On white

16.47
#2F0F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F45
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F45#FFFFFF#000000##FFFFFF
##2F0F451.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#031F44
Tritanopia (blue-blind)
#2C1B28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0f45;
/* rgb */ color: rgb(47, 15, 69);
/* oklch */ color: oklch(25.2% 0.098 308.0);
Tailwind
colors: {
  custom: {
    50: '#6a5079',
    500: '#2f0f45',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f45;
$custom-light: #6a5079;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f45",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 275.556,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25165,
    "c": 0.09773,
    "h": 308
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#2F0F45
secondary
#517F30
accent
#E74184
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0F45

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

Preview Lab → · Contrast checker → · Palette generator →

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