#2F1463#2F1463

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

Color values

HEX#2F1463
RGBrgb(47, 20, 99)
HSLhsl(261, 66%, 23%)
HSVhsv(261, 80%, 39%)
CMYKcmyk(52.5%, 79.8%, 0%, 61.2%)
CIE-LABlab(15.52, 33.21, -41.54)
CIE-LCHlch(15.52, 53.19, 308.64°)
OKLaboklab(28.66% 0.0476 -0.1192)
OKLCHoklch(28.66% 0.128 291.8)
XYZxyz(3.6739, 2.0054, 11.9955)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1463 #486314
analogous
#142063 #2F1463 #561463
triadic
#2F1463 #632F14 #14632F
tetradic
#2F1463 #631420 #486314 #146356
square
#2F1463 #631420 #486314 #146356
split-complementary
#2F1463 #635614 #206314
monochromatic
#0C0519 #170A30 #2F1463 #471E96 #5F29C9

Accessibility & contrast

On white

14.99
#2F1463 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1463 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1463
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1463#FFFFFF#000000##FFFFFF
##2F14631.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#1E2A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1463;
/* rgb */ color: rgb(47, 20, 99);
/* oklch */ color: oklch(28.7% 0.128 291.8);
Tailwind
colors: {
  custom: {
    50: '#6e5590',
    500: '#2f1463',
    950: '#000000',
  },
}
SCSS
$custom: #2f1463;
$custom-light: #6e5590;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1463",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 99
  },
  "hsl": {
    "h": 260.506,
    "s": 66.387,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2866,
    "c": 0.1284,
    "h": 291.8
  },
  "luminance": 0.02006
}

Semantic roles & 50–950 ramp

primary
#2F1463
secondary
#799A38
accent
#E93EAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2F1463

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

Preview Lab → · Contrast checker → · Palette generator →

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