#2F1763#2F1763

#2F1763 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.125 H 291.0°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2F1763
RGBrgb(47, 23, 99)
HSLhsl(259, 62%, 24%)
HSVhsv(259, 77%, 39%)
CMYKcmyk(52.5%, 76.8%, 0%, 61.2%)
CIE-LABlab(16.09, 31.58, -40.59)
CIE-LCHlch(16.09, 51.43, 307.88°)
OKLaboklab(29.07% 0.0448 -0.1165)
OKLCHoklch(29.07% 0.125 291)
XYZxyz(3.7302, 2.1178, 12.0142)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1763 #4B6317
analogous
#172563 #2F1763 #551763
triadic
#2F1763 #632F17 #17632F
tetradic
#2F1763 #631725 #4B6317 #176355
square
#2F1763 #631725 #4B6317 #176355
split-complementary
#2F1763 #635517 #256317
monochromatic
#0C0619 #170B31 #2F1763 #472395 #5E2EC6

Accessibility & contrast

On white

14.75
#2F1763 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1763 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1763
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1763#FFFFFF#000000##FFFFFF
##2F17631.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#1E2B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1763;
/* rgb */ color: rgb(47, 23, 99);
/* oklch */ color: oklch(29.1% 0.125 291.0);
Tailwind
colors: {
  custom: {
    50: '#6e5690',
    500: '#2f1763',
    950: '#000000',
  },
}
SCSS
$custom: #2f1763;
$custom-light: #6e5690;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1763",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 99
  },
  "hsl": {
    "h": 258.947,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29068,
    "c": 0.1248,
    "h": 291
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#2F1763
secondary
#7C9A3C
accent
#E542B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2F1763

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

Preview Lab → · Contrast checker → · Palette generator →

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