#2F0B4B#2F0B4B

#2F0B4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.110 H 305.1°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#2F0B4B
RGBrgb(47, 11, 75)
HSLhsl(274, 74%, 17%)
HSVhsv(274, 85%, 29%)
CMYKcmyk(37.3%, 85.3%, 0%, 70.6%)
CIE-LABlab(11.63, 30.81, -31.63)
CIE-LCHlch(11.63, 44.16, 314.24°)
OKLaboklab(25.22% 0.0633 -0.0901)
OKLCHoklch(25.22% 0.11 305.1)
XYZxyz(2.5617, 1.3517, 6.7812)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B4B #274B0B
analogous
#0F0B4B #2F0B4B #4B0B47
triadic
#2F0B4B #4B2F0B #0B4B2F
tetradic
#2F0B4B #4B0F0B #274B0B #0B474B
square
#2F0B4B #4B0F0B #274B0B #0B474B
split-complementary
#2F0B4B #474B0B #0B4B0F
monochromatic
#11041B #11041B #2F0B4B #501380 #721BB6

Accessibility & contrast

On white

16.53
#2F0B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F0B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0B4B
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B4B#FFFFFF#000000##FFFFFF
##2F0B4B1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#2A1B2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0b4b;
/* rgb */ color: rgb(47, 11, 75);
/* oklch */ color: oklch(25.2% 0.110 305.1);
Tailwind
colors: {
  custom: {
    50: '#6b4f7e',
    500: '#2f0b4b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b4b;
$custom-light: #6b4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b4b",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 273.75,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25216,
    "c": 0.1101,
    "h": 305.1
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#2F0B4B
secondary
#53872B
accent
#F13788
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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