#2F1765#2F1765

#2F1765 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.127 H 290.3°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#2F1765
RGBrgb(47, 23, 101)
HSLhsl(258, 63%, 24%)
HSVhsv(258, 77%, 40%)
CMYKcmyk(53.5%, 77.2%, 0%, 60.4%)
CIE-LABlab(16.29, 32.20, -41.60)
CIE-LCHlch(16.29, 52.60, 307.74°)
OKLaboklab(29.27% 0.0443 -0.1194)
OKLCHoklch(29.27% 0.127 290.3)
XYZxyz(3.8270, 2.1566, 12.5240)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1765 #4D6517
analogous
#172665 #2F1765 #561765
triadic
#2F1765 #652F17 #17652F
tetradic
#2F1765 #651726 #4D6517 #176556
square
#2F1765 #651726 #4D6517 #176556
split-complementary
#2F1765 #655617 #266517
monochromatic
#0C0619 #180C33 #2F1765 #462297 #5D2EC9

Accessibility & contrast

On white

14.67
#2F1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1765
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1765#FFFFFF#000000##FFFFFF
##2F17651.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1C2C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1765;
/* rgb */ color: rgb(47, 23, 101);
/* oklch */ color: oklch(29.3% 0.127 290.3);
Tailwind
colors: {
  custom: {
    50: '#6e5792',
    500: '#2f1765',
    950: '#000000',
  },
}
SCSS
$custom: #2f1765;
$custom-light: #6e5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1765",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 258.462,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29266,
    "c": 0.12737,
    "h": 290.3
  },
  "luminance": 0.02157
}

Semantic roles & 50–950 ramp

primary
#2F1765
secondary
#7E9B3C
accent
#E642B3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1765

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

Preview Lab → · Contrast checker → · Palette generator →

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