#2F1956#2F1956

#2F1956 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.105 H 295.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2F1956
RGBrgb(47, 25, 86)
HSLhsl(262, 55%, 22%)
HSVhsv(262, 71%, 34%)
CMYKcmyk(45.3%, 70.9%, 0%, 66.3%)
CIE-LABlab(15.34, 26.37, -33.14)
CIE-LCHlch(15.34, 42.35, 308.51°)
OKLaboklab(28.16% 0.045 -0.0946)
OKLCHoklch(28.16% 0.105 295.4)
XYZxyz(3.1992, 1.9714, 9.0143)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1956 #405619
analogous
#192256 #2F1956 #4E1956
triadic
#2F1956 #562F19 #19562F
tetradic
#2F1956 #561922 #405619 #19564E
square
#2F1956 #561922 #405619 #19564E
split-complementary
#2F1956 #564E19 #225619
monochromatic
#0D0718 #150B27 #2F1956 #492785 #6335B5

Accessibility & contrast

On white

15.06
#2F1956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1956
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1956#FFFFFF#000000##FFFFFF
##2F19561.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#252735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1956;
/* rgb */ color: rgb(47, 25, 86);
/* oklch */ color: oklch(28.2% 0.105 295.4);
Tailwind
colors: {
  custom: {
    50: '#6b5786',
    500: '#2f1956',
    950: '#000000',
  },
}
SCSS
$custom: #2f1956;
$custom-light: #6b5786;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1956",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 261.639,
    "s": 54.955,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28158,
    "c": 0.10476,
    "h": 295.4
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#2F1956
secondary
#708C3E
accent
#DE4AA9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1956

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

Preview Lab → · Contrast checker → · Palette generator →

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