#2E255A#2E255A

#2E255A is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.092 H 287.5°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2E255A
RGBrgb(46, 37, 90)
HSLhsl(250, 42%, 25%)
HSVhsv(250, 59%, 35%)
CMYKcmyk(48.9%, 58.9%, 0%, 64.7%)
CIE-LABlab(18.55, 19.51, -30.64)
CIE-LCHlch(18.55, 36.32, 302.49°)
OKLaboklab(30.58% 0.0276 -0.0873)
OKLCHoklch(30.58% 0.092 287.5)
XYZxyz(3.6332, 2.6420, 9.9894)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E255A #515A25
analogous
#25365A #2E255A #49255A
triadic
#2E255A #5A2E25 #255A2E
tetradic
#2E255A #5A2536 #515A25 #255A49
square
#2E255A #5A2536 #515A25 #255A49
split-complementary
#2E255A #5A4925 #365A25
monochromatic
#0B0916 #18132F #2E255A #443785 #5A49B1

Accessibility & contrast

On white

13.74
#2E255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E255A
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E255A#FFFFFF#000000##FFFFFF
##2E255A1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092E5C
Deuteranopia (green-blind)
#092C59
Tritanopia (blue-blind)
#20313B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e255a;
/* rgb */ color: rgb(46, 37, 90);
/* oklch */ color: oklch(30.6% 0.092 287.5);
Tailwind
colors: {
  custom: {
    50: '#6a5f89',
    500: '#2e255a',
    950: '#000000',
  },
}
SCSS
$custom: #2e255a;
$custom-light: #6a5f89;
$custom-dark: #000000;
JSON
{
  "hex": "#2e255a",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 250.189,
    "s": 41.732,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30584,
    "c": 0.09152,
    "h": 287.5
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#2E255A
secondary
#838D4D
accent
#D256BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2E255A

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

Preview Lab → · Contrast checker → · Palette generator →

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