#2F1265#2F1265

#2F1265 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.133 H 291.5°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#2F1265
RGBrgb(47, 18, 101)
HSLhsl(261, 70%, 23%)
HSVhsv(261, 82%, 40%)
CMYKcmyk(53.5%, 82.2%, 0%, 60.4%)
CIE-LABlab(15.36, 34.83, -43.11)
CIE-LCHlch(15.36, 55.43, 308.94°)
OKLaboklab(28.62% 0.0487 -0.1238)
OKLCHoklch(28.62% 0.133 291.5)
XYZxyz(3.7369, 1.9764, 12.4940)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1265 #486512
analogous
#121E65 #2F1265 #581265
triadic
#2F1265 #652F12 #12652F
tetradic
#2F1265 #65121E #486512 #126558
square
#2F1265 #65121E #486512 #126558
split-complementary
#2F1265 #655812 #1E6512
monochromatic
#0C051A #170931 #2F1265 #471B99 #5F25CD

Accessibility & contrast

On white

15.05
#2F1265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1265
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1265#FFFFFF#000000##FFFFFF
##2F12651.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1265;
/* rgb */ color: rgb(47, 18, 101);
/* oklch */ color: oklch(28.6% 0.133 291.5);
Tailwind
colors: {
  custom: {
    50: '#6e5492',
    500: '#2f1265',
    950: '#000000',
  },
}
SCSS
$custom: #2f1265;
$custom-light: #6e5492;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1265",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 260.964,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28615,
    "c": 0.13308,
    "h": 291.5
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#2F1265
secondary
#799D36
accent
#ED3BAF
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1265

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

Preview Lab → · Contrast checker → · Palette generator →

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