#2E0F56#2E0F56

#2E0F56 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.118 H 297.4°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#2E0F56
RGBrgb(46, 15, 86)
HSLhsl(266, 70%, 20%)
HSVhsv(266, 83%, 34%)
CMYKcmyk(46.5%, 82.6%, 0%, 66.3%)
CIE-LABlab(13.20, 31.76, -36.63)
CIE-LCHlch(13.20, 48.49, 310.93°)
OKLaboklab(26.61% 0.0545 -0.1048)
OKLCHoklch(26.61% 0.118 297.4)
XYZxyz(2.9768, 1.5943, 8.9532)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F56 #37560F
analogous
#0F1456 #2E0F56 #520F56
triadic
#2E0F56 #562E0F #0F562E
tetradic
#2E0F56 #560F14 #37560F #0F5652
square
#2E0F56 #560F14 #37560F #0F5652
split-complementary
#2E0F56 #56520F #14560F
monochromatic
#0E051A #120622 #2E0F56 #4A188A #6621BE

Accessibility & contrast

On white

15.92
#2E0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F56
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F56#FFFFFF#000000##FFFFFF
##2E0F561.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#242232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e0f56;
/* rgb */ color: rgb(46, 15, 86);
/* oklch */ color: oklch(26.6% 0.118 297.4);
Tailwind
colors: {
  custom: {
    50: '#6c5186',
    500: '#2e0f56',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f56;
$custom-light: #6c5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f56",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 266.197,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26606,
    "c": 0.11815,
    "h": 297.4
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#2E0F56
secondary
#669031
accent
#ED3B9F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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