#2E0746#2E0746

#2E0746 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.109 H 308.0°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#2E0746
RGBrgb(46, 7, 70)
HSLhsl(277, 82%, 15%)
HSVhsv(277, 90%, 27%)
CMYKcmyk(34.3%, 90%, 0%, 72.5%)
CIE-LABlab(10.37, 31.12, -30.21)
CIE-LCHlch(10.37, 43.37, 315.85°)
OKLaboklab(24.15% 0.0672 -0.0859)
OKLCHoklch(24.15% 0.109 308)
XYZxyz(2.3079, 1.1750, 5.8984)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0746 #1F4607
analogous
#0F0746 #2E0746 #46073E
triadic
#2E0746 #462E07 #07462E
tetradic
#2E0746 #460F07 #1F4607 #073E46
square
#2E0746 #460F07 #1F4607 #073E46
split-complementary
#2E0746 #3E4607 #07460F
monochromatic
#12031C #12031C #2E0746 #530D7E #7712B5

Accessibility & contrast

On white

17.00
#2E0746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2E0746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0746
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0746#FFFFFF#000000##FFFFFF
##2E07461.0017.001.2317.00
#FFFFFF17.001.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#2A1827
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2e0746;
/* rgb */ color: rgb(46, 7, 70);
/* oklch */ color: oklch(24.2% 0.109 308.0);
Tailwind
colors: {
  custom: {
    50: '#6a4c7a',
    500: '#2e0746',
    950: '#000000',
  },
}
SCSS
$custom: #2e0746;
$custom-light: #6a4c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0746",
  "rgb": {
    "r": 46,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 277.143,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24154,
    "c": 0.10904,
    "h": 308
  },
  "luminance": 0.01175
}

Semantic roles & 50–950 ramp

primary
#2E0746
secondary
#498524
accent
#F8307C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0746

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

Preview Lab → · Contrast checker → · Palette generator →

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