#2E274E#2E274E

#2E274E is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.1% C 0.069 H 289.9°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2E274E
RGBrgb(46, 39, 78)
HSLhsl(251, 33%, 23%)
HSVhsv(251, 50%, 31%)
CMYKcmyk(41%, 50%, 0%, 69.4%)
CIE-LABlab(18.29, 14.12, -23.00)
CIE-LCHlch(18.29, 26.99, 301.55°)
OKLaboklab(30.12% 0.0234 -0.0649)
OKLCHoklch(30.12% 0.069 289.9)
XYZxyz(3.2270, 2.5819, 7.5346)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E274E #474E27
analogous
#27334E #2E274E #41274E
triadic
#2E274E #4E2E27 #274E2E
tetradic
#2E274E #4E2733 #474E27 #274E41
square
#2E274E #4E2733 #474E27 #274E41
split-complementary
#2E274E #4E4127 #334E27
monochromatic
#0C0A14 #161325 #2E274E #463B77 #5E50A0

Accessibility & contrast

On white

13.85
#2E274E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E274E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E274E
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E274E#FFFFFF#000000##FFFFFF
##2E274E1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D4F
Deuteranopia (green-blind)
#1A2C4D
Tritanopia (blue-blind)
#262F36
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e274e;
/* rgb */ color: rgb(46, 39, 78);
/* oklch */ color: oklch(30.1% 0.069 289.9);
Tailwind
colors: {
  custom: {
    50: '#686180',
    500: '#2e274e',
    950: '#000000',
  },
}
SCSS
$custom: #2e274e;
$custom-light: #686180;
$custom-dark: #000000;
JSON
{
  "hex": "#2e274e",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 78
  },
  "hsl": {
    "h": 250.769,
    "s": 33.333,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3012,
    "c": 0.06896,
    "h": 289.9
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#2E274E
secondary
#788150
accent
#C95EB6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2E274E

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

Preview Lab → · Contrast checker → · Palette generator →

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