#2F0945#2F0945

#2F0945 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.106 H 309.3°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#2F0945
RGBrgb(47, 9, 69)
HSLhsl(278, 77%, 15%)
HSVhsv(278, 87%, 27%)
CMYKcmyk(31.9%, 87%, 0%, 72.9%)
CIE-LABlab(10.77, 30.14, -28.84)
CIE-LCHlch(10.77, 41.72, 316.26°)
OKLaboklab(24.44% 0.0669 -0.0819)
OKLCHoklch(24.44% 0.106 309.3)
XYZxyz(2.3439, 1.2294, 5.7429)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0945 #1F4509
analogous
#110945 #2F0945 #45093D
triadic
#2F0945 #452F09 #09452F
tetradic
#2F0945 #451109 #1F4509 #093D45
square
#2F0945 #451109 #1F4509 #093D45
split-complementary
#2F0945 #3D4509 #094511
monochromatic
#12041B #12041B #2F0945 #54107B #7917B1

Accessibility & contrast

On white

16.86
#2F0945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0945
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0945#FFFFFF#000000##FFFFFF
##2F09451.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#2C1827
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0945;
/* rgb */ color: rgb(47, 9, 69);
/* oklch */ color: oklch(24.4% 0.106 309.3);
Tailwind
colors: {
  custom: {
    50: '#6b4d79',
    500: '#2f0945',
    950: '#000000',
  },
}
SCSS
$custom: #2f0945;
$custom-light: #6b4d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0945",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 69
  },
  "hsl": {
    "h": 278,
    "s": 76.923,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24441,
    "c": 0.10574,
    "h": 309.3
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#2F0945
secondary
#498327
accent
#F3347A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0945

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

Preview Lab → · Contrast checker → · Palette generator →

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