#2F0B4A#2F0B4A

#2F0B4A is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.109 H 305.7°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#2F0B4A
RGBrgb(47, 11, 74)
HSLhsl(274, 74%, 17%)
HSVhsv(274, 85%, 29%)
CMYKcmyk(36.5%, 85.1%, 0%, 71%)
CIE-LABlab(11.54, 30.54, -31.09)
CIE-LCHlch(11.54, 43.58, 314.49°)
OKLaboklab(25.12% 0.0636 -0.0885)
OKLCHoklch(25.12% 0.109 305.7)
XYZxyz(2.5277, 1.3381, 6.6024)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B4A #264A0B
analogous
#100B4A #2F0B4A #4A0B46
triadic
#2F0B4A #4A2F0B #0B4A2F
tetradic
#2F0B4A #4A100B #264A0B #0B464A
square
#2F0B4A #4A100B #264A0B #0B464A
split-complementary
#2F0B4A #464A0B #0B4A10
monochromatic
#11041B #11041B #2F0B4A #51137F #731BB5

Accessibility & contrast

On white

16.57
#2F0B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0B4A
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B4A#FFFFFF#000000##FFFFFF
##2F0B4A1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#2A1B2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0b4a;
/* rgb */ color: rgb(47, 11, 74);
/* oklch */ color: oklch(25.1% 0.109 305.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f7d',
    500: '#2f0b4a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b4a;
$custom-light: #6b4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b4a",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 274.286,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25122,
    "c": 0.10895,
    "h": 305.7
  },
  "luminance": 0.01338
}

Semantic roles & 50–950 ramp

primary
#2F0B4A
secondary
#52862B
accent
#F13787
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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