#2E264F#2E264F

#2E264F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.072 H 290.3°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2E264F
RGBrgb(46, 38, 79)
HSLhsl(252, 35%, 23%)
HSVhsv(252, 52%, 31%)
CMYKcmyk(41.8%, 51.9%, 0%, 69%)
CIE-LABlab(18.06, 15.15, -24.03)
CIE-LCHlch(18.06, 28.41, 302.23°)
OKLaboklab(29.97% 0.0251 -0.0679)
OKLCHoklch(29.97% 0.072 290.3)
XYZxyz(3.2307, 2.5315, 7.7140)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E264F #474F26
analogous
#26324F #2E264F #42264F
triadic
#2E264F #4F2E26 #264F2E
tetradic
#2E264F #4F2632 #474F26 #264F42
square
#2E264F #4F2632 #474F26 #264F42
split-complementary
#2E264F #4F4226 #324F26
monochromatic
#0C0A15 #161226 #2E264F #463A78 #5E4EA2

Accessibility & contrast

On white

13.94
#2E264F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E264F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E264F
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E264F#FFFFFF#000000##FFFFFF
##2E264F1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D50
Deuteranopia (green-blind)
#182B4E
Tritanopia (blue-blind)
#252E36
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e264f;
/* rgb */ color: rgb(46, 38, 79);
/* oklch */ color: oklch(30.0% 0.072 290.3);
Tailwind
colors: {
  custom: {
    50: '#696080',
    500: '#2e264f',
    950: '#000000',
  },
}
SCSS
$custom: #2e264f;
$custom-light: #696080;
$custom-dark: #000000;
JSON
{
  "hex": "#2e264f",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 79
  },
  "hsl": {
    "h": 251.707,
    "s": 35.043,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29972,
    "c": 0.07238,
    "h": 290.3
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#2E264F
secondary
#78824F
accent
#CB5DB6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2E264F

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

Preview Lab → · Contrast checker → · Palette generator →

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