#2F0F56#2F0F56

#2F0F56 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.118 H 298.3°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2F0F56
RGBrgb(47, 15, 86)
HSLhsl(267, 70%, 20%)
HSVhsv(267, 83%, 34%)
CMYKcmyk(45.3%, 82.6%, 0%, 66.3%)
CIE-LABlab(13.34, 31.95, -36.39)
CIE-LCHlch(13.34, 48.43, 311.28°)
OKLaboklab(26.74% 0.0561 -0.1041)
OKLCHoklch(26.74% 0.118 298.3)
XYZxyz(3.0224, 1.6178, 8.9553)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F56 #36560F
analogous
#0F1356 #2F0F56 #530F56
triadic
#2F0F56 #562F0F #0F562F
tetradic
#2F0F56 #560F13 #36560F #0F5653
square
#2F0F56 #560F13 #36560F #0F5653
split-complementary
#2F0F56 #56530F #13560F
monochromatic
#0E051A #130622 #2F0F56 #4B188A #6821BE

Accessibility & contrast

On white

15.87
#2F0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F56
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F56#FFFFFF#000000##FFFFFF
##2F0F561.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#252232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f0f56;
/* rgb */ color: rgb(47, 15, 86);
/* oklch */ color: oklch(26.7% 0.118 298.3);
Tailwind
colors: {
  custom: {
    50: '#6c5186',
    500: '#2f0f56',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f56;
$custom-light: #6c5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f56",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 267.042,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26737,
    "c": 0.11828,
    "h": 298.3
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#2F0F56
secondary
#659031
accent
#ED3B9D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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