#2F1855#2F1855

#2F1855 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.105 H 296.2°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2F1855
RGBrgb(47, 24, 85)
HSLhsl(263, 56%, 21%)
HSVhsv(263, 72%, 33%)
CMYKcmyk(44.7%, 71.8%, 0%, 66.7%)
CIE-LABlab(15.03, 26.67, -32.97)
CIE-LCHlch(15.03, 42.41, 308.97°)
OKLaboklab(27.91% 0.0464 -0.0941)
OKLCHoklch(27.91% 0.105 296.2)
XYZxyz(3.1382, 1.9134, 8.7966)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1855 #3E5518
analogous
#182055 #2F1855 #4E1855
triadic
#2F1855 #552F18 #18552F
tetradic
#2F1855 #551820 #3E5518 #18554E
square
#2F1855 #551820 #3E5518 #18554E
split-complementary
#2F1855 #554E18 #205518
monochromatic
#0D0718 #150B25 #2F1855 #492585 #6433B4

Accessibility & contrast

On white

15.19
#2F1855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1855
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1855#FFFFFF#000000##FFFFFF
##2F18551.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#252634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1855;
/* rgb */ color: rgb(47, 24, 85);
/* oklch */ color: oklch(27.9% 0.105 296.2);
Tailwind
colors: {
  custom: {
    50: '#6b5685',
    500: '#2f1855',
    950: '#000000',
  },
}
SCSS
$custom: #2f1855;
$custom-light: #6b5685;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1855",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 262.623,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27908,
    "c": 0.1049,
    "h": 296.2
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#2F1855
secondary
#6E8C3D
accent
#DF49A6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1855

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

Preview Lab → · Contrast checker → · Palette generator →

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