#2F1367#2F1367

#2F1367 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.134 H 290.6°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2F1367
RGBrgb(47, 19, 103)
HSLhsl(260, 69%, 24%)
HSVhsv(260, 82%, 40%)
CMYKcmyk(54.4%, 81.6%, 0%, 59.6%)
CIE-LABlab(15.74, 34.93, -43.81)
CIE-LCHlch(15.74, 56.03, 308.57°)
OKLaboklab(28.94% 0.0473 -0.1259)
OKLCHoklch(28.94% 0.134 290.6)
XYZxyz(3.8526, 2.0492, 13.0219)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1367 #4B6713
analogous
#132167 #2F1367 #591367
triadic
#2F1367 #672F13 #13672F
tetradic
#2F1367 #671321 #4B6713 #136759
square
#2F1367 #671321 #4B6713 #136759
split-complementary
#2F1367 #675913 #216713
monochromatic
#0C051A #170933 #2F1367 #471D9B #5E26CE

Accessibility & contrast

On white

14.90
#2F1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1367
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1367#FFFFFF#000000##FFFFFF
##2F13671.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#1B2B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1367;
/* rgb */ color: rgb(47, 19, 103);
/* oklch */ color: oklch(28.9% 0.134 290.6);
Tailwind
colors: {
  custom: {
    50: '#6f5493',
    500: '#2f1367',
    950: '#000000',
  },
}
SCSS
$custom: #2f1367;
$custom-light: #6f5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1367",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 260,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28944,
    "c": 0.13447,
    "h": 290.6
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#2F1367
secondary
#7C9E37
accent
#EC3CB1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1367

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

Preview Lab → · Contrast checker → · Palette generator →

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