#2E137B#2E137B

#2E137B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.159 H 284.1°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2E137B
RGBrgb(46, 19, 123)
HSLhsl(256, 73%, 28%)
HSVhsv(256, 85%, 48%)
CMYKcmyk(62.6%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.81, 40.78, -53.37)
CIE-LCHlch(17.81, 67.17, 307.38°)
OKLaboklab(31.01% 0.0387 -0.1539)
OKLCHoklch(31.01% 0.159 284.1)
XYZxyz(4.9336, 2.4763, 18.9530)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E137B #607B13
analogous
#132C7B #2E137B #62137B
triadic
#2E137B #7B2E13 #137B2E
tetradic
#2E137B #7B132C #607B13 #137B62
square
#2E137B #7B132C #607B13 #137B62
split-complementary
#2E137B #7B6213 #2C7B13
monochromatic
#0A041B #1A0B46 #2E137B #421BB0 #592ADE

Accessibility & contrast

On white

14.04
#2E137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E137B
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E137B#FFFFFF#000000##FFFFFF
##2E137B1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e137b;
/* rgb */ color: rgb(46, 19, 123);
/* oklch */ color: oklch(31.0% 0.159 284.1);
Tailwind
colors: {
  custom: {
    50: '#7256a2',
    500: '#2e137b',
    950: '#000000',
  },
}
SCSS
$custom: #2e137b;
$custom-light: #7256a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e137b",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 255.577,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31006,
    "c": 0.15866,
    "h": 284.1
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#2E137B
secondary
#92B139
accent
#F038C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E137B

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

Preview Lab → · Contrast checker → · Palette generator →

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