#2F0A4C#2F0A4C

#2F0A4C is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.112 H 304.7°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2F0A4C
RGBrgb(47, 10, 76)
HSLhsl(274, 77%, 17%)
HSVhsv(274, 87%, 30%)
CMYKcmyk(38.2%, 86.8%, 0%, 70.2%)
CIE-LABlab(11.57, 31.51, -32.42)
CIE-LCHlch(11.57, 45.21, 314.18°)
OKLaboklab(25.21% 0.0639 -0.0924)
OKLCHoklch(25.21% 0.112 304.7)
XYZxyz(2.5850, 1.3432, 6.9592)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0A4C #274C0A
analogous
#0E0A4C #2F0A4C #4C0A48
triadic
#2F0A4C #4C2F0A #0A4C2F
tetradic
#2F0A4C #4C0E0A #274C0A #0A484C
square
#2F0A4C #4C0E0A #274C0A #0A484C
split-complementary
#2F0A4C #484C0A #0A4C0E
monochromatic
#11041B #11041B #2F0A4C #501182 #7218B8

Accessibility & contrast

On white

16.55
#2F0A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F0A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0A4C
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0A4C#FFFFFF#000000##FFFFFF
##2F0A4C1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#291B2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0a4c;
/* rgb */ color: rgb(47, 10, 76);
/* oklch */ color: oklch(25.2% 0.112 304.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e7f',
    500: '#2f0a4c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0a4c;
$custom-light: #6b4e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0a4c",
  "rgb": {
    "r": 47,
    "g": 10,
    "b": 76
  },
  "hsl": {
    "h": 273.636,
    "s": 76.744,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25205,
    "c": 0.11237,
    "h": 304.7
  },
  "luminance": 0.01343
}

Semantic roles & 50–950 ramp

primary
#2F0A4C
secondary
#538929
accent
#F33588
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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