#2E254A#2E254A

#2E254A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.4% C 0.066 H 293.1°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2E254A
RGBrgb(46, 37, 74)
HSLhsl(255, 33%, 22%)
HSVhsv(255, 50%, 29%)
CMYKcmyk(37.8%, 50%, 0%, 71%)
CIE-LABlab(17.45, 14.24, -21.60)
CIE-LCHlch(17.45, 25.87, 303.40°)
OKLaboklab(29.41% 0.0259 -0.0608)
OKLCHoklch(29.41% 0.066 293.1)
XYZxyz(3.0240, 2.3983, 6.7808)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E254A #414A25
analogous
#252F4A #2E254A #41254A
triadic
#2E254A #4A2E25 #254A2E
tetradic
#2E254A #4A252F #414A25 #254A41
square
#2E254A #4A252F #414A25 #254A41
split-complementary
#2E254A #4A4125 #2F4A25
monochromatic
#0D0A14 #151121 #2E254A #473973 #614E9C

Accessibility & contrast

On white

14.19
#2E254A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E254A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E254A
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E254A#FFFFFF#000000##FFFFFF
##2E254A1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192B4B
Deuteranopia (green-blind)
#1A2A49
Tritanopia (blue-blind)
#272C34
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e254a;
/* rgb */ color: rgb(46, 37, 74);
/* oklch */ color: oklch(29.4% 0.066 293.1);
Tailwind
colors: {
  custom: {
    50: '#685f7d',
    500: '#2e254a',
    950: '#000000',
  },
}
SCSS
$custom: #2e254a;
$custom-light: #685f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e254a",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 74
  },
  "hsl": {
    "h": 254.595,
    "s": 33.333,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2941,
    "c": 0.06606,
    "h": 293.1
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#2E254A
secondary
#727D4E
accent
#C95EAF
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E254A

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

Preview Lab → · Contrast checker → · Palette generator →

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