#2F1064#2F1064

#2F1064 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.134 H 292.2°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2F1064
RGBrgb(47, 16, 100)
HSLhsl(262, 72%, 23%)
HSVhsv(262, 84%, 39%)
CMYKcmyk(53%, 84%, 0%, 60.8%)
CIE-LABlab(14.93, 35.50, -43.17)
CIE-LCHlch(14.93, 55.89, 309.43°)
OKLaboklab(28.28% 0.0507 -0.124)
OKLCHoklch(28.28% 0.134 292.2)
XYZxyz(3.6572, 1.8949, 12.2272)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1064 #456410
analogous
#101B64 #2F1064 #591064
triadic
#2F1064 #642F10 #10642F
tetradic
#2F1064 #64101B #456410 #106459
square
#2F1064 #64101B #456410 #106459
split-complementary
#2F1064 #645910 #1B6410
monochromatic
#0C041A #16082F #2F1064 #481899 #6121CE

Accessibility & contrast

On white

15.23
#2F1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1064
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1064#FFFFFF#000000##FFFFFF
##2F10641.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#1D283A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1064;
/* rgb */ color: rgb(47, 16, 100);
/* oklch */ color: oklch(28.3% 0.134 292.2);
Tailwind
colors: {
  custom: {
    50: '#6e5391',
    500: '#2f1064',
    950: '#000000',
  },
}
SCSS
$custom: #2f1064;
$custom-light: #6e5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1064",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 262.143,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28279,
    "c": 0.13395,
    "h": 292.2
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#2F1064
secondary
#769D33
accent
#EF39AC
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2F1064

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

Preview Lab → · Contrast checker → · Palette generator →

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