#2F1255#2F1255

#2F1255 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.113 H 298.1°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2F1255
RGBrgb(47, 18, 85)
HSLhsl(266, 65%, 20%)
HSVhsv(266, 79%, 33%)
CMYKcmyk(44.7%, 78.8%, 0%, 66.7%)
CIE-LABlab(13.78, 30.12, -34.99)
CIE-LCHlch(13.78, 46.17, 310.73°)
OKLaboklab(27.02% 0.0533 -0.1)
OKLCHoklch(27.02% 0.113 298.1)
XYZxyz(3.0279, 1.6928, 8.7598)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1255 #385512
analogous
#121655 #2F1255 #501255
triadic
#2F1255 #552F12 #12552F
tetradic
#2F1255 #551216 #385512 #125550
square
#2F1255 #551216 #385512 #125550
split-complementary
#2F1255 #555012 #165512
monochromatic
#0E0519 #130722 #2F1255 #4B1D88 #6727BA

Accessibility & contrast

On white

15.69
#2F1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1255
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1255#FFFFFF#000000##FFFFFF
##2F12551.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#262332
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1255;
/* rgb */ color: rgb(47, 18, 85);
/* oklch */ color: oklch(27.0% 0.113 298.1);
Tailwind
colors: {
  custom: {
    50: '#6c5385',
    500: '#2f1255',
    950: '#000000',
  },
}
SCSS
$custom: #2f1255;
$custom-light: #6c5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1255",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 265.97,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27022,
    "c": 0.11334,
    "h": 298.1
  },
  "luminance": 0.01693
}

Semantic roles & 50–950 ramp

primary
#2F1255
secondary
#678E35
accent
#E8409F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1255

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

Preview Lab → · Contrast checker → · Palette generator →

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