#2F1750#2F1750

#2F1750 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.100 H 299.0°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2F1750
RGBrgb(47, 23, 80)
HSLhsl(265, 55%, 20%)
HSVhsv(265, 71%, 31%)
CMYKcmyk(41.3%, 71.2%, 0%, 68.6%)
CIE-LABlab(14.38, 25.76, -30.61)
CIE-LCHlch(14.38, 40.01, 310.08°)
OKLaboklab(27.31% 0.0483 -0.0872)
OKLCHoklch(27.31% 0.1 299)
XYZxyz(2.9263, 1.7963, 7.7804)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1750 #385017
analogous
#171B50 #2F1750 #4B1750
triadic
#2F1750 #502F17 #17502F
tetradic
#2F1750 #50171B #385017 #17504B
square
#2F1750 #50171B #385017 #17504B
split-complementary
#2F1750 #504B17 #1B5017
monochromatic
#0E0718 #130920 #2F1750 #4B2580 #6732AF

Accessibility & contrast

On white

15.45
#2F1750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1750 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1750
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1750#FFFFFF#000000##FFFFFF
##2F17501.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#272431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1750;
/* rgb */ color: rgb(47, 23, 80);
/* oklch */ color: oklch(27.3% 0.100 299.0);
Tailwind
colors: {
  custom: {
    50: '#6b5681',
    500: '#2f1750',
    950: '#000000',
  },
}
SCSS
$custom: #2f1750;
$custom-light: #6b5681;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1750",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 265.263,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27309,
    "c": 0.09967,
    "h": 299
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#2F1750
secondary
#67873C
accent
#DF49A0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1750

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

Preview Lab → · Contrast checker → · Palette generator →

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