#2F1360#2F1360

#2F1360 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.126 H 293.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1360
RGBrgb(47, 19, 96)
HSLhsl(262, 67%, 23%)
HSVhsv(262, 80%, 38%)
CMYKcmyk(51%, 80.2%, 0%, 62.4%)
CIE-LABlab(15.03, 32.84, -40.34)
CIE-LCHlch(15.03, 52.02, 309.15°)
OKLaboklab(28.23% 0.0494 -0.1157)
OKLCHoklch(28.23% 0.126 293.1)
XYZxyz(3.5159, 1.9145, 11.2483)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1360 #446013
analogous
#131E60 #2F1360 #551360
triadic
#2F1360 #602F13 #13602F
tetradic
#2F1360 #60131E #446013 #136055
square
#2F1360 #60131E #446013 #136055
split-complementary
#2F1360 #605513 #1E6013
monochromatic
#0D051A #16092D #2F1360 #481D93 #6127C6

Accessibility & contrast

On white

15.18
#2F1360 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1360 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1360
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1360#FFFFFF#000000##FFFFFF
##2F13601.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#202838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1360;
/* rgb */ color: rgb(47, 19, 96);
/* oklch */ color: oklch(28.2% 0.126 293.1);
Tailwind
colors: {
  custom: {
    50: '#6e548e',
    500: '#2f1360',
    950: '#000000',
  },
}
SCSS
$custom: #2f1360;
$custom-light: #6e548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1360",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 96
  },
  "hsl": {
    "h": 261.818,
    "s": 66.957,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28229,
    "c": 0.12583,
    "h": 293.1
  },
  "luminance": 0.01915
}

Semantic roles & 50–950 ramp

primary
#2F1360
secondary
#759837
accent
#EA3EAB
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1360

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

Preview Lab → · Contrast checker → · Palette generator →

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