#2E2267#2E2267

#2E2267 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.1% C 0.115 H 285.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2E2267
RGBrgb(46, 34, 103)
HSLhsl(250, 50%, 27%)
HSVhsv(250, 67%, 40%)
CMYKcmyk(55.3%, 67%, 0%, 59.6%)
CIE-LABlab(18.82, 25.94, -38.79)
CIE-LCHlch(18.82, 46.66, 303.77°)
OKLaboklab(31.11% 0.0308 -0.1112)
OKLCHoklch(31.11% 0.115 285.5)
XYZxyz(4.1462, 2.7040, 13.1328)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2267 #5B6722
analogous
#223967 #2E2267 #512267
triadic
#2E2267 #672E22 #22672E
tetradic
#2E2267 #672239 #5B6722 #226751
square
#2E2267 #672239 #5B6722 #226751
split-complementary
#2E2267 #675122 #396722
monochromatic
#0A0817 #191339 #2E2267 #433195 #5943C1

Accessibility & contrast

On white

13.63
#2E2267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E2267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2267
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2267#FFFFFF#000000##FFFFFF
##2E22671.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#173341
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e2267;
/* rgb */ color: rgb(46, 34, 103);
/* oklch */ color: oklch(31.1% 0.115 285.5);
Tailwind
colors: {
  custom: {
    50: '#6d5e93',
    500: '#2e2267',
    950: '#000000',
  },
}
SCSS
$custom: #2e2267;
$custom-light: #6d5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2267",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 250.435,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31111,
    "c": 0.11545,
    "h": 285.5
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#2E2267
secondary
#8D9B4A
accent
#DA4EC2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E2267

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

Preview Lab → · Contrast checker → · Palette generator →

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