#2F1165#2F1165

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

Color values

HEX#2F1165
RGBrgb(47, 17, 101)
HSLhsl(261, 71%, 23%)
HSVhsv(261, 83%, 40%)
CMYKcmyk(53.5%, 83.2%, 0%, 60.4%)
CIE-LABlab(15.19, 35.32, -43.39)
CIE-LCHlch(15.19, 55.95, 309.14°)
OKLaboklab(28.5% 0.0495 -0.1246)
OKLCHoklch(28.5% 0.134 291.7)
XYZxyz(3.7210, 1.9447, 12.4887)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1165 #476511
analogous
#111D65 #2F1165 #591165
triadic
#2F1165 #652F11 #11652F
tetradic
#2F1165 #65111D #476511 #116559
square
#2F1165 #65111D #476511 #116559
split-complementary
#2F1165 #655911 #1D6511
monochromatic
#0C041A #170831 #2F1165 #471A99 #6023CE

Accessibility & contrast

On white

15.12
#2F1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1165
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1165#FFFFFF#000000##FFFFFF
##2F11651.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.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: #2f1165;
/* rgb */ color: rgb(47, 17, 101);
/* oklch */ color: oklch(28.5% 0.134 291.7);
Tailwind
colors: {
  custom: {
    50: '#6f5392',
    500: '#2f1165',
    950: '#000000',
  },
}
SCSS
$custom: #2f1165;
$custom-light: #6f5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1165",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 261.429,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28498,
    "c": 0.13413,
    "h": 291.7
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#2F1165
secondary
#789D35
accent
#EE3AAE
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1165

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

Preview Lab → · Contrast checker → · Palette generator →

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