#2F0C55#2F0C55

#2F0C55 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.120 H 299.4°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#2F0C55
RGBrgb(47, 12, 85)
HSLhsl(269, 75%, 19%)
HSVhsv(269, 86%, 33%)
CMYKcmyk(44.7%, 85.9%, 0%, 66.7%)
CIE-LABlab(12.75, 33.07, -36.67)
CIE-LCHlch(12.75, 49.38, 312.04°)
OKLaboklab(26.3% 0.0592 -0.1049)
OKLCHoklch(26.3% 0.12 299.4)
XYZxyz(2.9430, 1.5231, 8.7315)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C55 #32550C
analogous
#0C0E55 #2F0C55 #540C55
triadic
#2F0C55 #552F0C #0C552F
tetradic
#2F0C55 #550C0E #32550C #0C5554
square
#2F0C55 #550C0E #32550C #0C5554
split-complementary
#2F0C55 #55540C #0E550C
monochromatic
#0F041B #11041F #2F0C55 #4D148B #6A1BC0

Accessibility & contrast

On white

16.10
#2F0C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F0C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C55
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C55#FFFFFF#000000##FFFFFF
##2F0C551.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002157
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#262031
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f0c55;
/* rgb */ color: rgb(47, 12, 85);
/* oklch */ color: oklch(26.3% 0.120 299.4);
Tailwind
colors: {
  custom: {
    50: '#6c5086',
    500: '#2f0c55',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c55;
$custom-light: #6c5086;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c55",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 268.767,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26299,
    "c": 0.12046,
    "h": 299.4
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#2F0C55
secondary
#60902D
accent
#F23698
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0C55

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

Preview Lab → · Contrast checker → · Palette generator →

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