#2F1769#2F1769

#2F1769 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.132 H 289.0°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2F1769
RGBrgb(47, 23, 105)
HSLhsl(258, 64%, 25%)
HSVhsv(258, 78%, 41%)
CMYKcmyk(55.2%, 78.1%, 0%, 58.8%)
CIE-LABlab(16.68, 33.44, -43.58)
CIE-LCHlch(16.68, 54.93, 307.50°)
OKLaboklab(29.67% 0.0432 -0.1252)
OKLCHoklch(29.67% 0.132 289)
XYZxyz(4.0277, 2.2369, 13.5814)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1769 #516917
analogous
#172869 #2F1769 #581769
triadic
#2F1769 #692F17 #17692F
tetradic
#2F1769 #691728 #516917 #176958
square
#2F1769 #691728 #516917 #176958
split-complementary
#2F1769 #695817 #286917
monochromatic
#0B0519 #190C37 #2F1769 #45229B #5C2DCD

Accessibility & contrast

On white

14.51
#2F1769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1769 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1769
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1769#FFFFFF#000000##FFFFFF
##2F17691.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#192D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1769;
/* rgb */ color: rgb(47, 23, 105);
/* oklch */ color: oklch(29.7% 0.132 289.0);
Tailwind
colors: {
  custom: {
    50: '#6f5795',
    500: '#2f1769',
    950: '#000000',
  },
}
SCSS
$custom: #2f1769;
$custom-light: #6f5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1769",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 257.561,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29666,
    "c": 0.13248,
    "h": 289
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#2F1769
secondary
#829F3D
accent
#E741B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1769

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

Preview Lab → · Contrast checker → · Palette generator →

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