#2F1355#2F1355

#2F1355 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.112 H 297.8°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#2F1355
RGBrgb(47, 19, 85)
HSLhsl(265, 63%, 20%)
HSVhsv(265, 78%, 33%)
CMYKcmyk(44.7%, 77.6%, 0%, 66.7%)
CIE-LABlab(13.98, 29.58, -34.67)
CIE-LCHlch(13.98, 45.57, 310.47°)
OKLaboklab(27.16% 0.0523 -0.0991)
OKLCHoklch(27.16% 0.112 297.8)
XYZxyz(3.0444, 1.7259, 8.7653)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1355 #395513
analogous
#131855 #2F1355 #501355
triadic
#2F1355 #552F13 #13552F
tetradic
#2F1355 #551318 #395513 #135550
square
#2F1355 #551318 #395513 #135550
split-complementary
#2F1355 #555013 #185513
monochromatic
#0E0619 #130823 #2F1355 #4B1E87 #6629B9

Accessibility & contrast

On white

15.61
#2F1355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1355 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1355
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1355#FFFFFF#000000##FFFFFF
##2F13551.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#262432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1355;
/* rgb */ color: rgb(47, 19, 85);
/* oklch */ color: oklch(27.2% 0.112 297.8);
Tailwind
colors: {
  custom: {
    50: '#6c5385',
    500: '#2f1355',
    950: '#000000',
  },
}
SCSS
$custom: #2f1355;
$custom-light: #6c5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1355",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 85
  },
  "hsl": {
    "h": 265.455,
    "s": 63.462,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27159,
    "c": 0.11201,
    "h": 297.8
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#2F1355
secondary
#688D36
accent
#E641A0
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1355

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

Preview Lab → · Contrast checker → · Palette generator →

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