#2F0B4E#2F0B4E

#2F0B4E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.114 H 303.3°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2F0B4E
RGBrgb(47, 11, 78)
HSLhsl(272, 75%, 17%)
HSVhsv(272, 86%, 31%)
CMYKcmyk(39.7%, 85.9%, 0%, 69.4%)
CIE-LABlab(11.92, 31.61, -33.25)
CIE-LCHlch(11.92, 45.87, 313.55°)
OKLaboklab(25.5% 0.0624 -0.0948)
OKLCHoklch(25.5% 0.114 303.3)
XYZxyz(2.6668, 1.3937, 7.3348)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B4E #2A4E0B
analogous
#0E0B4E #2F0B4E #4E0B4B
triadic
#2F0B4E #4E2F0B #0B4E2F
tetradic
#2F0B4E #4E0E0B #2A4E0B #0B4B4E
square
#2F0B4E #4E0E0B #2A4E0B #0B4B4E
split-complementary
#2F0B4E #4B4E0B #0B4E0E
monochromatic
#10041B #10041B #2F0B4E #4F1384 #701AB9

Accessibility & contrast

On white

16.42
#2F0B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F0B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0B4E
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B4E#FFFFFF#000000##FFFFFF
##2F0B4E1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#291D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0b4e;
/* rgb */ color: rgb(47, 11, 78);
/* oklch */ color: oklch(25.5% 0.114 303.3);
Tailwind
colors: {
  custom: {
    50: '#6c4f80',
    500: '#2f0b4e',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b4e;
$custom-light: #6c4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b4e",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 272.239,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25503,
    "c": 0.11352,
    "h": 303.3
  },
  "luminance": 0.01394
}

Semantic roles & 50–950 ramp

primary
#2F0B4E
secondary
#578A2B
accent
#F2368D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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