#2E2065#2E2065

#2E2065 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.115 H 286.8°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2E2065
RGBrgb(46, 32, 101)
HSLhsl(252, 52%, 26%)
HSVhsv(252, 68%, 40%)
CMYKcmyk(54.5%, 68.3%, 0%, 60.4%)
CIE-LABlab(18.16, 26.56, -38.55)
CIE-LCHlch(18.16, 46.81, 304.57°)
OKLaboklab(30.58% 0.0333 -0.1105)
OKLCHoklch(30.58% 0.115 286.8)
XYZxyz(3.9915, 2.5533, 12.5919)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2065 #576520
analogous
#203465 #2E2065 #502065
triadic
#2E2065 #652E20 #20652E
tetradic
#2E2065 #652034 #576520 #206550
square
#2E2065 #652034 #576520 #206550
split-complementary
#2E2065 #655020 #346520
monochromatic
#0B0717 #191137 #2E2065 #432F93 #583EC2

Accessibility & contrast

On white

13.90
#2E2065 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E2065 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2065
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2065#FFFFFF#000000##FFFFFF
##2E20651.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E67
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#19313F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e2065;
/* rgb */ color: rgb(46, 32, 101);
/* oklch */ color: oklch(30.6% 0.115 286.8);
Tailwind
colors: {
  custom: {
    50: '#6d5c91',
    500: '#2e2065',
    950: '#000000',
  },
}
SCSS
$custom: #2e2065;
$custom-light: #6d5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2065",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 101
  },
  "hsl": {
    "h": 252.174,
    "s": 51.88,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30578,
    "c": 0.11545,
    "h": 286.8
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#2E2065
secondary
#899948
accent
#DB4CBE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E2065

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

Preview Lab → · Contrast checker → · Palette generator →

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