#2F1966#2F1966

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

Color values

HEX#2F1966
RGBrgb(47, 25, 102)
HSLhsl(257, 61%, 25%)
HSVhsv(257, 75%, 40%)
CMYKcmyk(53.9%, 75.5%, 0%, 60%)
CIE-LABlab(16.79, 31.38, -41.43)
CIE-LCHlch(16.79, 51.97, 307.14°)
OKLaboklab(29.65% 0.0421 -0.119)
OKLCHoklch(29.65% 0.126 289.5)
XYZxyz(3.9175, 2.2587, 12.7974)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1966 #506619
analogous
#192966 #2F1966 #561966
triadic
#2F1966 #662F19 #19662F
tetradic
#2F1966 #661929 #506619 #196656
square
#2F1966 #661929 #506619 #196656
split-complementary
#2F1966 #665619 #296619
monochromatic
#0B0619 #180D35 #2F1966 #462597 #5C31C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1966#FFFFFF#000000##FFFFFF
##2F19661.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)
#002B68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#1B2D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1966;
/* rgb */ color: rgb(47, 25, 102);
/* oklch */ color: oklch(29.7% 0.126 289.5);
Tailwind
colors: {
  custom: {
    50: '#6e5892',
    500: '#2f1966',
    950: '#000000',
  },
}
SCSS
$custom: #2f1966;
$custom-light: #6e5892;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1966",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 257.143,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29651,
    "c": 0.12619,
    "h": 289.5
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#2F1966
secondary
#819C3F
accent
#E444B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1966

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

Preview Lab → · Contrast checker → · Palette generator →

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