#2E195E#2E195E

#2E195E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.116 H 291.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2E195E
RGBrgb(46, 25, 94)
HSLhsl(258, 58%, 23%)
HSVhsv(258, 73%, 37%)
CMYKcmyk(51.1%, 73.4%, 0%, 63.1%)
CIE-LABlab(15.92, 28.66, -37.56)
CIE-LCHlch(15.92, 47.24, 307.34°)
OKLaboklab(28.77% 0.0421 -0.1076)
OKLCHoklch(28.77% 0.116 291.4)
XYZxyz(3.4942, 2.0841, 10.8057)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E195E #495E19
analogous
#19265E #2E195E #50195E
triadic
#2E195E #5E2E19 #195E2E
tetradic
#2E195E #5E1926 #495E19 #195E50
square
#2E195E #5E1926 #495E19 #195E50
split-complementary
#2E195E #5E5019 #265E19
monochromatic
#0C0618 #160C2E #2E195E #46268E #5D33BF

Accessibility & contrast

On white

14.82
#2E195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E195E
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E195E#FFFFFF#000000##FFFFFF
##2E195E1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#1F2A39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e195e;
/* rgb */ color: rgb(46, 25, 94);
/* oklch */ color: oklch(28.8% 0.116 291.4);
Tailwind
colors: {
  custom: {
    50: '#6c578c',
    500: '#2e195e',
    950: '#000000',
  },
}
SCSS
$custom: #2e195e;
$custom-light: #6c578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e195e",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 258.261,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28773,
    "c": 0.11558,
    "h": 291.4
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#2E195E
secondary
#7A943F
accent
#E147B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E195E

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

Preview Lab → · Contrast checker → · Palette generator →

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