#2F1065#2F1065

#2F1065 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.135 H 291.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1065
RGBrgb(47, 16, 101)
HSLhsl(262, 73%, 23%)
HSVhsv(262, 84%, 40%)
CMYKcmyk(53.5%, 84.2%, 0%, 60.4%)
CIE-LABlab(15.03, 35.79, -43.66)
CIE-LCHlch(15.03, 56.45, 309.34°)
OKLaboklab(28.39% 0.0503 -0.1254)
OKLCHoklch(28.39% 0.135 291.9)
XYZxyz(3.7059, 1.9144, 12.4836)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1065 #466510
analogous
#101C65 #2F1065 #591065
triadic
#2F1065 #652F10 #10652F
tetradic
#2F1065 #65101C #466510 #106559
square
#2F1065 #65101C #466510 #106559
split-complementary
#2F1065 #655910 #1C6510
monochromatic
#0C041A #160830 #2F1065 #48189A #6021CF

Accessibility & contrast

On white

15.18
#2F1065 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1065 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1065
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1065#FFFFFF#000000##FFFFFF
##2F10651.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#1D293B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1065;
/* rgb */ color: rgb(47, 16, 101);
/* oklch */ color: oklch(28.4% 0.135 291.9);
Tailwind
colors: {
  custom: {
    50: '#6f5392',
    500: '#2f1065',
    950: '#000000',
  },
}
SCSS
$custom: #2f1065;
$custom-light: #6f5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1065",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 101
  },
  "hsl": {
    "h": 261.882,
    "s": 72.65,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28385,
    "c": 0.13514,
    "h": 291.9
  },
  "luminance": 0.01915
}

Semantic roles & 50–950 ramp

primary
#2F1065
secondary
#779D33
accent
#EF38AD
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2F1065

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

Preview Lab → · Contrast checker → · Palette generator →

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