#2E0F48#2E0F48

#2E0F48 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.101 H 305.0°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#2E0F48
RGBrgb(46, 15, 72)
HSLhsl(273, 66%, 17%)
HSVhsv(273, 79%, 28%)
CMYKcmyk(36.1%, 79.2%, 0%, 71.8%)
CIE-LABlab(11.89, 27.81, -29.13)
CIE-LCHlch(11.89, 40.27, 313.67°)
OKLaboklab(25.28% 0.058 -0.0828)
OKLCHoklch(25.28% 0.101 305)
XYZxyz(2.4670, 1.3904, 6.2680)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F48 #29480F
analogous
#120F48 #2E0F48 #480F46
triadic
#2E0F48 #482E0F #0F482E
tetradic
#2E0F48 #48120F #29480F #0F4648
square
#2E0F48 #48120F #29480F #0F4648
split-complementary
#2E0F48 #46480F #0F4812
monochromatic
#100519 #100519 #2E0F48 #4E1A7B #6F24AD

Accessibility & contrast

On white

16.43
#2E0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E0F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F48
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F48#FFFFFF#000000##FFFFFF
##2E0F481.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#291C2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0f48;
/* rgb */ color: rgb(46, 15, 72);
/* oklch */ color: oklch(25.3% 0.101 305.0);
Tailwind
colors: {
  custom: {
    50: '#6a507b',
    500: '#2e0f48',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f48;
$custom-light: #6a507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f48",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 272.632,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25282,
    "c": 0.10109,
    "h": 305
  },
  "luminance": 0.0139
}

Semantic roles & 50–950 ramp

primary
#2E0F48
secondary
#568230
accent
#E83F8C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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