#2F1857#2F1857

#2F1857 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.108 H 295.4°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#2F1857
RGBrgb(47, 24, 87)
HSLhsl(262, 57%, 22%)
HSVhsv(262, 72%, 34%)
CMYKcmyk(46%, 72.4%, 0%, 65.9%)
CIE-LABlab(15.20, 27.29, -34.04)
CIE-LCHlch(15.20, 43.62, 308.72°)
OKLaboklab(28.09% 0.0461 -0.0972)
OKLCHoklch(28.09% 0.108 295.4)
XYZxyz(3.2188, 1.9457, 9.2209)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1857 #405718
analogous
#182157 #2F1857 #4F1857
triadic
#2F1857 #572F18 #18572F
tetradic
#2F1857 #571821 #405718 #18574F
square
#2F1857 #571821 #405718 #18574F
split-complementary
#2F1857 #574F18 #215718
monochromatic
#0D0718 #150B27 #2F1857 #492587 #6332B7

Accessibility & contrast

On white

15.12
#2F1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1857
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1857#FFFFFF#000000##FFFFFF
##2F18571.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#242735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1857;
/* rgb */ color: rgb(47, 24, 87);
/* oklch */ color: oklch(28.1% 0.108 295.4);
Tailwind
colors: {
  custom: {
    50: '#6c5687',
    500: '#2f1857',
    950: '#000000',
  },
}
SCSS
$custom: #2f1857;
$custom-light: #6c5687;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1857",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 261.905,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28087,
    "c": 0.10761,
    "h": 295.4
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#2F1857
secondary
#708E3D
accent
#E048A8
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1857

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

Preview Lab → · Contrast checker → · Palette generator →

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