#2E2265#2E2265

#2E2265 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.9% C 0.113 H 286.0°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2E2265
RGBrgb(46, 34, 101)
HSLhsl(251, 50%, 26%)
HSVhsv(251, 66%, 40%)
CMYKcmyk(54.5%, 66.3%, 0%, 60.4%)
CIE-LABlab(18.65, 25.26, -37.75)
CIE-LCHlch(18.65, 45.43, 303.79°)
OKLaboklab(30.93% 0.031 -0.1082)
OKLCHoklch(30.93% 0.113 286)
XYZxyz(4.0470, 2.6643, 12.6104)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2265 #596522
analogous
#223865 #2E2265 #502265
triadic
#2E2265 #652E22 #22652E
tetradic
#2E2265 #652238 #596522 #226550
square
#2E2265 #652238 #596522 #226550
split-complementary
#2E2265 #655022 #386522
monochromatic
#0A0817 #191337 #2E2265 #433193 #5842BF

Accessibility & contrast

On white

13.70
#2E2265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E2265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2265
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2265#FFFFFF#000000##FFFFFF
##2E22651.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#193240
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e2265;
/* rgb */ color: rgb(46, 34, 101);
/* oklch */ color: oklch(30.9% 0.113 286.0);
Tailwind
colors: {
  custom: {
    50: '#6c5e91',
    500: '#2e2265',
    950: '#000000',
  },
}
SCSS
$custom: #2e2265;
$custom-light: #6c5e91;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2265",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 101
  },
  "hsl": {
    "h": 250.746,
    "s": 49.63,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30933,
    "c": 0.11257,
    "h": 286
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#2E2265
secondary
#8B994A
accent
#D94FC0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E2265

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

Preview Lab → · Contrast checker → · Palette generator →

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