#2E255B#2E255B

#2E255B is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.7% C 0.093 H 287.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2E255B
RGBrgb(46, 37, 91)
HSLhsl(250, 42%, 25%)
HSVhsv(250, 59%, 36%)
CMYKcmyk(49.5%, 59.3%, 0%, 64.3%)
CIE-LABlab(18.62, 19.85, -31.18)
CIE-LCHlch(18.62, 36.96, 302.48°)
OKLaboklab(30.66% 0.0276 -0.0889)
OKLCHoklch(30.66% 0.093 287.2)
XYZxyz(3.6761, 2.6592, 10.2151)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E255B #525B25
analogous
#25375B #2E255B #49255B
triadic
#2E255B #5B2E25 #255B2E
tetradic
#2E255B #5B2537 #525B25 #255B49
square
#2E255B #5B2537 #525B25 #255B49
split-complementary
#2E255B #5B4925 #375B25
monochromatic
#0B0916 #18132F #2E255B #443787 #5A48B2

Accessibility & contrast

On white

13.71
#2E255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E255B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E255B#FFFFFF#000000##FFFFFF
##2E255B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072F5D
Deuteranopia (green-blind)
#072C5A
Tritanopia (blue-blind)
#20313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e255b;
/* rgb */ color: rgb(46, 37, 91);
/* oklch */ color: oklch(30.7% 0.093 287.2);
Tailwind
colors: {
  custom: {
    50: '#6a5f8a',
    500: '#2e255b',
    950: '#000000',
  },
}
SCSS
$custom: #2e255b;
$custom-light: #6a5f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e255b",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 250,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30663,
    "c": 0.09305,
    "h": 287.2
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#2E255B
secondary
#848E4D
accent
#D256BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E255B

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

Preview Lab → · Contrast checker → · Palette generator →

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