#2F0F4C#2F0F4C

#2F0F4C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.106 H 303.6°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2F0F4C
RGBrgb(47, 15, 76)
HSLhsl(271, 67%, 18%)
HSVhsv(271, 80%, 30%)
CMYKcmyk(38.2%, 80.3%, 0%, 70.2%)
CIE-LABlab(12.40, 29.14, -31.07)
CIE-LCHlch(12.40, 42.60, 313.16°)
OKLaboklab(25.79% 0.0588 -0.0885)
OKLCHoklch(25.79% 0.106 303.6)
XYZxyz(2.6473, 1.4678, 6.9799)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F4C #2C4C0F
analogous
#100F4C #2F0F4C #4C0F4A
triadic
#2F0F4C #4C2F0F #0F4C2F
tetradic
#2F0F4C #4C100F #2C4C0F #0F4A4C
square
#2F0F4C #4C100F #2C4C0F #0F4A4C
split-complementary
#2F0F4C #4A4C0F #0F4C10
monochromatic
#10051A #10051A #2F0F4C #4F197F #6E23B2

Accessibility & contrast

On white

16.23
#2F0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F4C
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F4C#FFFFFF#000000##FFFFFF
##2F0F4C1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#291E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0f4c;
/* rgb */ color: rgb(47, 15, 76);
/* oklch */ color: oklch(25.8% 0.106 303.6);
Tailwind
colors: {
  custom: {
    50: '#6b517f',
    500: '#2f0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f4c;
$custom-light: #6b517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f4c",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 271.475,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25787,
    "c": 0.10623,
    "h": 303.6
  },
  "luminance": 0.01468
}

Semantic roles & 50–950 ramp

primary
#2F0F4C
secondary
#598631
accent
#EA3E90
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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