#2F0F4A#2F0F4A

#2F0F4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.104 H 304.8°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2F0F4A
RGBrgb(47, 15, 74)
HSLhsl(273, 66%, 17%)
HSVhsv(273, 80%, 29%)
CMYKcmyk(36.5%, 79.7%, 0%, 71%)
CIE-LABlab(12.22, 28.59, -29.98)
CIE-LCHlch(12.22, 41.43, 313.64°)
OKLaboklab(25.61% 0.0592 -0.0853)
OKLCHoklch(25.61% 0.104 304.8)
XYZxyz(2.5789, 1.4404, 6.6194)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F4A #2A4A0F
analogous
#110F4A #2F0F4A #4A0F48
triadic
#2F0F4A #4A2F0F #0F4A2F
tetradic
#2F0F4A #4A110F #2A4A0F #0F484A
square
#2F0F4A #4A110F #2A4A0F #0F484A
split-complementary
#2F0F4A #484A0F #0F4A11
monochromatic
#100519 #100519 #2F0F4A #4F197D #7024B0

Accessibility & contrast

On white

16.30
#2F0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F4A
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F4A#FFFFFF#000000##FFFFFF
##2F0F4A1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2A1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0f4a;
/* rgb */ color: rgb(47, 15, 74);
/* oklch */ color: oklch(25.6% 0.104 304.8);
Tailwind
colors: {
  custom: {
    50: '#6b517d',
    500: '#2f0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f4a;
$custom-light: #6b517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f4a",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 272.542,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25605,
    "c": 0.1038,
    "h": 304.8
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#2F0F4A
secondary
#578430
accent
#E93F8D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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