#2F1366#2F1366

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

Color values

HEX#2F1366
RGBrgb(47, 19, 102)
HSLhsl(260, 69%, 24%)
HSVhsv(260, 81%, 40%)
CMYKcmyk(53.9%, 81.4%, 0%, 60%)
CIE-LABlab(15.64, 34.63, -43.32)
CIE-LCHlch(15.64, 55.46, 308.64°)
OKLaboklab(28.84% 0.0476 -0.1244)
OKLCHoklch(28.84% 0.133 290.9)
XYZxyz(3.8027, 2.0292, 12.7591)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1366 #4A6613
analogous
#132066 #2F1366 #581366
triadic
#2F1366 #662F13 #13662F
tetradic
#2F1366 #661320 #4A6613 #136658
square
#2F1366 #661320 #4A6613 #136658
split-complementary
#2F1366 #665813 #206613
monochromatic
#0C051A #170932 #2F1366 #471D9A #5F26CD

Accessibility & contrast

On white

14.94
#2F1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1366
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1366#FFFFFF#000000##FFFFFF
##2F13661.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#1C2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1366;
/* rgb */ color: rgb(47, 19, 102);
/* oklch */ color: oklch(28.8% 0.133 290.9);
Tailwind
colors: {
  custom: {
    50: '#6f5492',
    500: '#2f1366',
    950: '#000000',
  },
}
SCSS
$custom: #2f1366;
$custom-light: #6f5492;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1366",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 260.241,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2884,
    "c": 0.13323,
    "h": 290.9
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#2F1366
secondary
#7B9D37
accent
#EB3CB0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1366

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

Preview Lab → · Contrast checker → · Palette generator →

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