#2F2065#2F2065

#2F2065 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.115 H 287.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2065
RGBrgb(47, 32, 101)
HSLhsl(253, 52%, 26%)
HSVhsv(253, 68%, 40%)
CMYKcmyk(53.5%, 68.3%, 0%, 60.4%)
CIE-LABlab(18.26, 26.77, -38.37)
CIE-LCHlch(18.26, 46.79, 304.90°)
OKLaboklab(30.68% 0.0348 -0.11)
OKLCHoklch(30.68% 0.115 287.6)
XYZxyz(4.0371, 2.5768, 12.5940)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2065 #566520
analogous
#203365 #2F2065 #512065
triadic
#2F2065 #652F20 #20652F
tetradic
#2F2065 #652033 #566520 #206551
square
#2F2065 #652033 #566520 #206551
split-complementary
#2F2065 #655120 #336520
monochromatic
#0B0717 #191137 #2F2065 #452F93 #5A3EC2

Accessibility & contrast

On white

13.86
#2F2065 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F2065 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2065
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2065#FFFFFF#000000##FFFFFF
##2F20651.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E67
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#1C313F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f2065;
/* rgb */ color: rgb(47, 32, 101);
/* oklch */ color: oklch(30.7% 0.115 287.6);
Tailwind
colors: {
  custom: {
    50: '#6d5c91',
    500: '#2f2065',
    950: '#000000',
  },
}
SCSS
$custom: #2f2065;
$custom-light: #6d5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2065",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 101
  },
  "hsl": {
    "h": 253.043,
    "s": 51.88,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30679,
    "c": 0.11538,
    "h": 287.6
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#2F2065
secondary
#879948
accent
#DB4CBC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2F2065

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

Preview Lab → · Contrast checker → · Palette generator →

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