#2E137F#2E137F

#2E137F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 283.2°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2E137F
RGBrgb(46, 19, 127)
HSLhsl(255, 74%, 29%)
HSVhsv(255, 85%, 50%)
CMYKcmyk(63.8%, 85%, 0%, 50.2%)
CIE-LABlab(18.27, 41.97, -55.17)
CIE-LCHlch(18.27, 69.31, 307.26°)
OKLaboklab(31.46% 0.0372 -0.1591)
OKLCHoklch(31.46% 0.163 283.2)
XYZxyz(5.1892, 2.5785, 20.2988)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E137F #647F13
analogous
#132E7F #2E137F #64137F
triadic
#2E137F #7F2E13 #137F2E
tetradic
#2E137F #7F132E #647F13 #137F64
square
#2E137F #7F132E #647F13 #137F64
split-complementary
#2E137F #7F6413 #2E7F13
monochromatic
#0A041B #1B0B4A #2E137F #411BB4 #5A2DE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E137F#FFFFFF#000000##FFFFFF
##2E137F1.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)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e137f;
/* rgb */ color: rgb(46, 19, 127);
/* oklch */ color: oklch(31.5% 0.163 283.2);
Tailwind
colors: {
  custom: {
    50: '#7356a5',
    500: '#2e137f',
    950: '#000000',
  },
}
SCSS
$custom: #2e137f;
$custom-light: #7356a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e137f",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 255,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31458,
    "c": 0.16339,
    "h": 283.2
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#2E137F
secondary
#96B439
accent
#F137C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E137F

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

Preview Lab → · Contrast checker → · Palette generator →

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