#2F1264#2F1264

#2F1264 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.132 H 291.8°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#2F1264
RGBrgb(47, 18, 100)
HSLhsl(261, 69%, 23%)
HSVhsv(261, 82%, 39%)
CMYKcmyk(53%, 82%, 0%, 60.8%)
CIE-LABlab(15.26, 34.54, -42.62)
CIE-LCHlch(15.26, 54.86, 309.02°)
OKLaboklab(28.51% 0.0491 -0.1224)
OKLCHoklch(28.51% 0.132 291.8)
XYZxyz(3.6882, 1.9569, 12.2375)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1264 #476412
analogous
#121E64 #2F1264 #581264
triadic
#2F1264 #642F12 #12642F
tetradic
#2F1264 #64121E #476412 #126458
square
#2F1264 #64121E #476412 #126458
split-complementary
#2F1264 #645812 #1E6412
monochromatic
#0C051A #170930 #2F1264 #471B98 #6025CC

Accessibility & contrast

On white

15.09
#2F1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1264
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1264#FFFFFF#000000##FFFFFF
##2F12641.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1264;
/* rgb */ color: rgb(47, 18, 100);
/* oklch */ color: oklch(28.5% 0.132 291.8);
Tailwind
colors: {
  custom: {
    50: '#6e5491',
    500: '#2f1264',
    950: '#000000',
  },
}
SCSS
$custom: #2f1264;
$custom-light: #6e5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1264",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 261.22,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28512,
    "c": 0.13187,
    "h": 291.8
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#2F1264
secondary
#789C36
accent
#EC3BAE
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2F1264

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

Preview Lab → · Contrast checker → · Palette generator →

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