#2E1F67#2E1F67

#2E1F67 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.120 H 286.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1F67
RGBrgb(46, 31, 103)
HSLhsl(253, 54%, 26%)
HSVhsv(253, 70%, 40%)
CMYKcmyk(55.3%, 69.9%, 0%, 59.6%)
CIE-LABlab(18.10, 27.87, -39.96)
CIE-LCHlch(18.10, 48.72, 304.89°)
OKLaboklab(30.59% 0.0341 -0.1147)
OKLCHoklch(30.59% 0.12 286.6)
XYZxyz(4.0642, 2.5399, 13.1054)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F67 #58671F
analogous
#1F3467 #2E1F67 #521F67
triadic
#2E1F67 #672E1F #1F672E
tetradic
#2E1F67 #671F34 #58671F #1F6752
square
#2E1F67 #671F34 #58671F #1F6752
split-complementary
#2E1F67 #67521F #34671F
monochromatic
#0B0718 #191138 #2E1F67 #432D96 #583CC4

Accessibility & contrast

On white

13.93
#2E1F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F67
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F67#FFFFFF#000000##FFFFFF
##2E1F671.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#183140
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1f67;
/* rgb */ color: rgb(46, 31, 103);
/* oklch */ color: oklch(30.6% 0.120 286.6);
Tailwind
colors: {
  custom: {
    50: '#6d5c93',
    500: '#2e1f67',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f67;
$custom-light: #6d5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f67",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 252.5,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3059,
    "c": 0.11966,
    "h": 286.6
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#2E1F67
secondary
#8A9B46
accent
#DD4BBF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E1F67

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

Preview Lab → · Contrast checker → · Palette generator →

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