#2F0C45#2F0C45

#2F0C45 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.102 H 308.7°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#2F0C45
RGBrgb(47, 12, 69)
HSLhsl(277, 70%, 16%)
HSVhsv(277, 83%, 27%)
CMYKcmyk(31.9%, 82.6%, 0%, 72.9%)
CIE-LABlab(11.25, 28.76, -28.06)
CIE-LCHlch(11.25, 40.18, 315.70°)
OKLaboklab(24.78% 0.0637 -0.0796)
OKLCHoklch(24.78% 0.102 308.7)
XYZxyz(2.3777, 1.2970, 5.7542)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C45 #22450C
analogous
#120C45 #2F0C45 #450C3E
triadic
#2F0C45 #452F0C #0C452F
tetradic
#2F0C45 #45120C #22450C #0C3E45
square
#2F0C45 #45120C #22450C #0C3E45
split-complementary
#2F0C45 #3E450C #0C4512
monochromatic
#12051A #12051A #2F0C45 #531579 #761EAD

Accessibility & contrast

On white

16.67
#2F0C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F0C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C45
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C45#FFFFFF#000000##FFFFFF
##2F0C451.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0c45;
/* rgb */ color: rgb(47, 12, 69);
/* oklch */ color: oklch(24.8% 0.102 308.7);
Tailwind
colors: {
  custom: {
    50: '#6a4f79',
    500: '#2f0c45',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c45;
$custom-light: #6a4f79;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c45",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 276.842,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24781,
    "c": 0.10195,
    "h": 308.7
  },
  "luminance": 0.01297
}

Semantic roles & 50–950 ramp

primary
#2F0C45
secondary
#4D812C
accent
#ED3B80
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0C45

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

Preview Lab → · Contrast checker → · Palette generator →

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