#2F1767#2F1767

#2F1767 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.130 H 289.7°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2F1767
RGBrgb(47, 23, 103)
HSLhsl(258, 63%, 25%)
HSVhsv(258, 78%, 40%)
CMYKcmyk(54.4%, 77.7%, 0%, 59.6%)
CIE-LABlab(16.48, 32.82, -42.59)
CIE-LCHlch(16.48, 53.77, 307.62°)
OKLaboklab(29.47% 0.0437 -0.1223)
OKLCHoklch(29.47% 0.13 289.7)
XYZxyz(3.9262, 2.1962, 13.0464)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1767 #4F6717
analogous
#172767 #2F1767 #571767
triadic
#2F1767 #672F17 #17672F
tetradic
#2F1767 #671727 #4F6717 #176757
square
#2F1767 #671727 #4F6717 #176757
split-complementary
#2F1767 #675717 #276717
monochromatic
#0B0619 #180C35 #2F1767 #462299 #5D2DCB

Accessibility & contrast

On white

14.59
#2F1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1767
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1767#FFFFFF#000000##FFFFFF
##2F17671.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#1B2D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1767;
/* rgb */ color: rgb(47, 23, 103);
/* oklch */ color: oklch(29.5% 0.130 289.7);
Tailwind
colors: {
  custom: {
    50: '#6e5793',
    500: '#2f1767',
    950: '#000000',
  },
}
SCSS
$custom: #2f1767;
$custom-light: #6e5793;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1767",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 258,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29465,
    "c": 0.12993,
    "h": 289.7
  },
  "luminance": 0.02196
}

Semantic roles & 50–950 ramp

primary
#2F1767
secondary
#809D3D
accent
#E741B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1767

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

Preview Lab → · Contrast checker → · Palette generator →

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