#2E195F#2E195F

#2E195F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.117 H 291.0°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2E195F
RGBrgb(46, 25, 95)
HSLhsl(258, 58%, 24%)
HSVhsv(258, 74%, 37%)
CMYKcmyk(51.6%, 73.7%, 0%, 62.7%)
CIE-LABlab(16.01, 28.97, -38.07)
CIE-LCHlch(16.01, 47.84, 307.27°)
OKLaboklab(28.87% 0.0419 -0.1091)
OKLCHoklch(28.87% 0.117 291)
XYZxyz(3.5393, 2.1022, 11.0435)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E195F #4A5F19
analogous
#19275F #2E195F #51195F
triadic
#2E195F #5F2E19 #195F2E
tetradic
#2E195F #5F1927 #4A5F19 #195F51
square
#2E195F #5F1927 #4A5F19 #195F51
split-complementary
#2E195F #5F5119 #275F19
monochromatic
#0C0618 #170C2F #2E195F #45268F #5D32C0

Accessibility & contrast

On white

14.78
#2E195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E195F
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E195F#FFFFFF#000000##FFFFFF
##2E195F1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#1E2B3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e195f;
/* rgb */ color: rgb(46, 25, 95);
/* oklch */ color: oklch(28.9% 0.117 291.0);
Tailwind
colors: {
  custom: {
    50: '#6c578d',
    500: '#2e195f',
    950: '#000000',
  },
}
SCSS
$custom: #2e195f;
$custom-light: #6c578d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e195f",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 258,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28867,
    "c": 0.11693,
    "h": 291
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#2E195F
secondary
#7B953F
accent
#E246B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E195F

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

Preview Lab → · Contrast checker → · Palette generator →

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