#2F1075#2F1075

#2F1075 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.154 H 286.7°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1075
RGBrgb(47, 16, 117)
HSLhsl(258, 76%, 26%)
HSVhsv(258, 86%, 46%)
CMYKcmyk(59.8%, 86.3%, 0%, 54.1%)
CIE-LABlab(16.79, 40.44, -51.20)
CIE-LCHlch(16.79, 65.25, 308.30°)
OKLaboklab(30.13% 0.0444 -0.1475)
OKLCHoklch(30.13% 0.154 286.7)
XYZxyz(4.5675, 2.2590, 17.0215)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1075 #567510
analogous
#102375 #2F1075 #611075
triadic
#2F1075 #752F10 #10752F
tetradic
#2F1075 #751023 #567510 #107561
square
#2F1075 #751023 #567510 #107561
split-complementary
#2F1075 #756110 #237510
monochromatic
#0B041B #19093F #2F1075 #4517AB #5A1FE0

Accessibility & contrast

On white

14.46
#2F1075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1075
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1075#FFFFFF#000000##FFFFFF
##2F10751.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#0B2F44
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1075;
/* rgb */ color: rgb(47, 16, 117);
/* oklch */ color: oklch(30.1% 0.154 286.7);
Tailwind
colors: {
  custom: {
    50: '#72549e',
    500: '#2f1075',
    950: '#000000',
  },
}
SCSS
$custom: #2f1075;
$custom-light: #72549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1075",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 258.416,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30128,
    "c": 0.15399,
    "h": 286.7
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#2F1075
secondary
#87AC35
accent
#F335B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2F1075

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

Preview Lab → · Contrast checker → · Palette generator →

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