#2F155F#2F155F

#2F155F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.122 H 293.0°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2F155F
RGBrgb(47, 21, 95)
HSLhsl(261, 64%, 23%)
HSVhsv(261, 78%, 37%)
CMYKcmyk(50.5%, 77.9%, 0%, 62.7%)
CIE-LABlab(15.31, 31.47, -39.22)
CIE-LCHlch(15.31, 50.28, 308.74°)
OKLaboklab(28.4% 0.0477 -0.1124)
OKLCHoklch(28.4% 0.122 293)
XYZxyz(3.5054, 1.9668, 11.0192)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F155F #455F15
analogous
#15205F #2F155F #54155F
triadic
#2F155F #5F2F15 #155F2F
tetradic
#2F155F #5F1520 #455F15 #155F54
square
#2F155F #5F1520 #455F15 #155F54
split-complementary
#2F155F #5F5415 #205F15
monochromatic
#0C0619 #160A2D #2F155F #482091 #612BC3

Accessibility & contrast

On white

15.07
#2F155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F155F
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F155F#FFFFFF#000000##FFFFFF
##2F155F1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#202838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f155f;
/* rgb */ color: rgb(47, 21, 95);
/* oklch */ color: oklch(28.4% 0.122 293.0);
Tailwind
colors: {
  custom: {
    50: '#6d558d',
    500: '#2f155f',
    950: '#000000',
  },
}
SCSS
$custom: #2f155f;
$custom-light: #6d558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f155f",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 261.081,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28396,
    "c": 0.12215,
    "h": 293
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#2F155F
secondary
#76963A
accent
#E741AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F155F

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

Preview Lab → · Contrast checker → · Palette generator →

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