#2F0B45#2F0B45

#2F0B45 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.103 H 308.9°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#2F0B45
RGBrgb(47, 11, 69)
HSLhsl(277, 73%, 16%)
HSVhsv(277, 84%, 27%)
CMYKcmyk(31.9%, 84.1%, 0%, 72.9%)
CIE-LABlab(11.09, 29.23, -28.33)
CIE-LCHlch(11.09, 40.71, 315.89°)
OKLaboklab(24.66% 0.0648 -0.0804)
OKLCHoklch(24.66% 0.103 308.9)
XYZxyz(2.3659, 1.2734, 5.7502)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B45 #21450B
analogous
#120B45 #2F0B45 #450B3E
triadic
#2F0B45 #452F0B #0B452F
tetradic
#2F0B45 #45120B #21450B #0B3E45
square
#2F0B45 #45120B #21450B #0B3E45
split-complementary
#2F0B45 #3E450B #0B4512
monochromatic
#12041A #12041A #2F0B45 #53137A #771CAF

Accessibility & contrast

On white

16.74
#2F0B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F0B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0B45
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B45#FFFFFF#000000##FFFFFF
##2F0B451.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001E44
Tritanopia (blue-blind)
#2C1927
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0b45;
/* rgb */ color: rgb(47, 11, 69);
/* oklch */ color: oklch(24.7% 0.103 308.9);
Tailwind
colors: {
  custom: {
    50: '#6a4e79',
    500: '#2f0b45',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b45;
$custom-light: #6a4e79;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b45",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 277.241,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24663,
    "c": 0.10326,
    "h": 308.9
  },
  "luminance": 0.01273
}

Semantic roles & 50–950 ramp

primary
#2F0B45
secondary
#4B812A
accent
#EF397E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0B45

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

Preview Lab → · Contrast checker → · Palette generator →

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