#2F1359#2F1359

#2F1359 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.117 H 296.0°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1359
RGBrgb(47, 19, 89)
HSLhsl(264, 65%, 21%)
HSVhsv(264, 79%, 35%)
CMYKcmyk(47.2%, 78.7%, 0%, 65.1%)
CIE-LABlab(14.35, 30.76, -36.77)
CIE-LCHlch(14.35, 47.94, 309.92°)
OKLaboklab(27.54% 0.0513 -0.1052)
OKLCHoklch(27.54% 0.117 296)
XYZxyz(3.2079, 1.7913, 9.6260)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1359 #3D5913
analogous
#131A59 #2F1359 #521359
triadic
#2F1359 #592F13 #13592F
tetradic
#2F1359 #59131A #3D5913 #135952
square
#2F1359 #59131A #3D5913 #135952
split-complementary
#2F1359 #595213 #1A5913
monochromatic
#0D0519 #140827 #2F1359 #4A1E8B #6429BE

Accessibility & contrast

On white

15.46
#2F1359 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1359 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1359
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1359#FFFFFF#000000##FFFFFF
##2F13591.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#242535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1359;
/* rgb */ color: rgb(47, 19, 89);
/* oklch */ color: oklch(27.5% 0.117 296.0);
Tailwind
colors: {
  custom: {
    50: '#6c5489',
    500: '#2f1359',
    950: '#000000',
  },
}
SCSS
$custom: #2f1359;
$custom-light: #6c5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1359",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 89
  },
  "hsl": {
    "h": 264,
    "s": 64.815,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2754,
    "c": 0.11707,
    "h": 296
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#2F1359
secondary
#6D9137
accent
#E840A5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1359

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

Preview Lab → · Contrast checker → · Palette generator →

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