#2E2245#2E2245

#2E2245 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.4% C 0.064 H 298.1°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2E2245
RGBrgb(46, 34, 69)
HSLhsl(261, 34%, 20%)
HSVhsv(261, 51%, 27%)
CMYKcmyk(33.3%, 50.7%, 0%, 72.9%)
CIE-LABlab(16.28, 14.79, -20.03)
CIE-LCHlch(16.28, 24.89, 306.45°)
OKLaboklab(28.43% 0.0299 -0.0562)
OKLCHoklch(28.43% 0.064 298.1)
XYZxyz(2.7727, 2.1545, 5.8989)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2245 #394522
analogous
#222745 #2E2245 #3F2245
triadic
#2E2245 #452E22 #22452E
tetradic
#2E2245 #452227 #394522 #22453F
square
#2E2245 #452227 #394522 #22453F
split-complementary
#2E2245 #453F22 #274522
monochromatic
#0E0A14 #130E1C #2E2245 #49366E #654A97

Accessibility & contrast

On white

14.68
#2E2245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E2245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2245
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2245#FFFFFF#000000##FFFFFF
##2E22451.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172846
Deuteranopia (green-blind)
#1A2844
Tritanopia (blue-blind)
#292830
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2245;
/* rgb */ color: rgb(46, 34, 69);
/* oklch */ color: oklch(28.4% 0.064 298.1);
Tailwind
colors: {
  custom: {
    50: '#685d79',
    500: '#2e2245',
    950: '#000000',
  },
}
SCSS
$custom: #2e2245;
$custom-light: #685d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2245",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 69
  },
  "hsl": {
    "h": 260.571,
    "s": 33.981,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28425,
    "c": 0.06366,
    "h": 298.1
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#2E2245
secondary
#69794A
accent
#CA5EA5
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2245

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

Preview Lab → · Contrast checker → · Palette generator →

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