#2F1775#2F1775

#2F1775 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.148 H 285.6°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2F1775
RGBrgb(47, 23, 117)
HSLhsl(255, 67%, 27%)
HSVhsv(255, 80%, 46%)
CMYKcmyk(59.8%, 80.3%, 0%, 54.1%)
CIE-LABlab(17.92, 37.15, -49.34)
CIE-LCHlch(17.92, 61.76, 306.98°)
OKLaboklab(30.91% 0.0397 -0.1421)
OKLCHoklch(30.91% 0.148 285.6)
XYZxyz(4.6886, 2.5012, 17.0619)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1775 #5D7517
analogous
#172E75 #2F1775 #5E1775
triadic
#2F1775 #752F17 #17752F
tetradic
#2F1775 #75172E #5D7517 #17755E
square
#2F1775 #75172E #5D7517 #17755E
split-complementary
#2F1775 #755E17 #2E7517
monochromatic
#0A051A #1A0D42 #2F1775 #4421A8 #5B30D6

Accessibility & contrast

On white

14.00
#2F1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1775
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1775#FFFFFF#000000##FFFFFF
##2F17751.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#0B3245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1775;
/* rgb */ color: rgb(47, 23, 117);
/* oklch */ color: oklch(30.9% 0.148 285.6);
Tailwind
colors: {
  custom: {
    50: '#71579e',
    500: '#2f1775',
    950: '#000000',
  },
}
SCSS
$custom: #2f1775;
$custom-light: #71579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1775",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 255.319,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30912,
    "c": 0.14754,
    "h": 285.6
  },
  "luminance": 0.02501
}

Semantic roles & 50–950 ramp

primary
#2F1775
secondary
#8FAA3D
accent
#EA3EBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1775

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

Preview Lab → · Contrast checker → · Palette generator →

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