#2F1461#2F1461

#2F1461 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.126 H 292.5°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2F1461
RGBrgb(47, 20, 97)
HSLhsl(261, 66%, 23%)
HSVhsv(261, 79%, 38%)
CMYKcmyk(51.5%, 79.4%, 0%, 62%)
CIE-LABlab(15.32, 32.61, -40.54)
CIE-LCHlch(15.32, 52.03, 308.82°)
OKLaboklab(28.46% 0.0482 -0.1163)
OKLCHoklch(28.46% 0.126 292.5)
XYZxyz(3.5795, 1.9676, 11.4981)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1461 #466114
analogous
#141F61 #2F1461 #551461
triadic
#2F1461 #612F14 #14612F
tetradic
#2F1461 #61141F #466114 #146155
square
#2F1461 #61141F #466114 #146155
split-complementary
#2F1461 #615514 #1F6114
monochromatic
#0C0519 #160A2E #2F1461 #481E94 #6029C6

Accessibility & contrast

On white

15.07
#2F1461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1461
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1461#FFFFFF#000000##FFFFFF
##2F14611.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#1F2939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1461;
/* rgb */ color: rgb(47, 20, 97);
/* oklch */ color: oklch(28.5% 0.126 292.5);
Tailwind
colors: {
  custom: {
    50: '#6e558f',
    500: '#2f1461',
    950: '#000000',
  },
}
SCSS
$custom: #2f1461;
$custom-light: #6e558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1461",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 261.039,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28459,
    "c": 0.1259,
    "h": 292.5
  },
  "luminance": 0.01968
}

Semantic roles & 50–950 ramp

primary
#2F1461
secondary
#779838
accent
#E93FAD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1461

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

Preview Lab → · Contrast checker → · Palette generator →

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