#2F155D#2F155D

#2F155D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.120 H 293.8°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#2F155D
RGBrgb(47, 21, 93)
HSLhsl(262, 63%, 22%)
HSVhsv(262, 77%, 36%)
CMYKcmyk(49.5%, 77.4%, 0%, 63.5%)
CIE-LABlab(15.12, 30.86, -38.19)
CIE-LCHlch(15.12, 49.10, 308.94°)
OKLaboklab(28.2% 0.0482 -0.1094)
OKLCHoklch(28.2% 0.12 293.8)
XYZxyz(3.4157, 1.9309, 10.5465)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F155D #435D15
analogous
#151F5D #2F155D #53155D
triadic
#2F155D #5D2F15 #155D2F
tetradic
#2F155D #5D151F #435D15 #155D53
square
#2F155D #5D151F #435D15 #155D53
split-complementary
#2F155D #5D5315 #1F5D15
monochromatic
#0D0619 #160A2B #2F155D #48208F #612CC1

Accessibility & contrast

On white

15.15
#2F155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F155D
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F155D#FFFFFF#000000##FFFFFF
##2F155D1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#212837
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f155d;
/* rgb */ color: rgb(47, 21, 93);
/* oklch */ color: oklch(28.2% 0.120 293.8);
Tailwind
colors: {
  custom: {
    50: '#6d558c',
    500: '#2f155d',
    950: '#000000',
  },
}
SCSS
$custom: #2f155d;
$custom-light: #6d558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f155d",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 261.667,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28201,
    "c": 0.1196,
    "h": 293.8
  },
  "luminance": 0.01931
}

Semantic roles & 50–950 ramp

primary
#2F155D
secondary
#749439
accent
#E642AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F155D

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

Preview Lab → · Contrast checker → · Palette generator →

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