#2F1362#2F1362

#2F1362 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.128 H 292.4°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#2F1362
RGBrgb(47, 19, 98)
HSLhsl(261, 68%, 23%)
HSVhsv(261, 81%, 38%)
CMYKcmyk(52%, 80.6%, 0%, 61.6%)
CIE-LABlab(15.23, 33.44, -41.34)
CIE-LCHlch(15.23, 53.17, 308.96°)
OKLaboklab(28.43% 0.0488 -0.1187)
OKLCHoklch(28.43% 0.128 292.4)
XYZxyz(3.6091, 1.9518, 11.7395)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1362 #466213
analogous
#131E62 #2F1362 #561362
triadic
#2F1362 #622F13 #13622F
tetradic
#2F1362 #62131E #466213 #136256
square
#2F1362 #62131E #466213 #136256
split-complementary
#2F1362 #625613 #1E6213
monochromatic
#0C051A #16092F #2F1362 #481D95 #6027C9

Accessibility & contrast

On white

15.10
#2F1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1362
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1362#FFFFFF#000000##FFFFFF
##2F13621.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#1F293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1362;
/* rgb */ color: rgb(47, 19, 98);
/* oklch */ color: oklch(28.4% 0.128 292.4);
Tailwind
colors: {
  custom: {
    50: '#6e548f',
    500: '#2f1362',
    950: '#000000',
  },
}
SCSS
$custom: #2f1362;
$custom-light: #6e548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1362",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 261.266,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28431,
    "c": 0.1283,
    "h": 292.4
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#2F1362
secondary
#779A37
accent
#EA3DAD
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1362

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

Preview Lab → · Contrast checker → · Palette generator →

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