#2E254D#2E254D

#2E254D is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.6% C 0.071 H 291.8°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2E254D
RGBrgb(46, 37, 77)
HSLhsl(254, 35%, 22%)
HSVhsv(254, 52%, 30%)
CMYKcmyk(40.3%, 51.9%, 0%, 69.8%)
CIE-LABlab(17.64, 15.21, -23.34)
CIE-LCHlch(17.64, 27.86, 303.09°)
OKLaboklab(29.62% 0.0264 -0.0659)
OKLCHoklch(29.62% 0.071 291.8)
XYZxyz(3.1275, 2.4397, 7.3259)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E254D #444D25
analogous
#25304D #2E254D #42254D
triadic
#2E254D #4D2E25 #254D2E
tetradic
#2E254D #4D2530 #444D25 #254D42
square
#2E254D #4D2530 #444D25 #254D42
split-complementary
#2E254D #4D4225 #304D25
monochromatic
#0C0A15 #151124 #2E254D #473976 #5F4DA0

Accessibility & contrast

On white

14.11
#2E254D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E254D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E254D
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E254D#FFFFFF#000000##FFFFFF
##2E254D1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4E
Deuteranopia (green-blind)
#182A4C
Tritanopia (blue-blind)
#262D35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e254d;
/* rgb */ color: rgb(46, 37, 77);
/* oklch */ color: oklch(29.6% 0.071 291.8);
Tailwind
colors: {
  custom: {
    50: '#685f7f',
    500: '#2e254d',
    950: '#000000',
  },
}
SCSS
$custom: #2e254d;
$custom-light: #685f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e254d",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 77
  },
  "hsl": {
    "h": 253.5,
    "s": 35.088,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29616,
    "c": 0.07095,
    "h": 291.8
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#2E254D
secondary
#75804E
accent
#CB5DB2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E254D

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

Preview Lab → · Contrast checker → · Palette generator →

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