#2E127F#2E127F

#2E127F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.4% C 0.164 H 283.3°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2E127F
RGBrgb(46, 18, 127)
HSLhsl(255, 75%, 28%)
HSVhsv(255, 86%, 50%)
CMYKcmyk(63.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(18.12, 42.40, -55.41)
CIE-LCHlch(18.12, 69.77, 307.42°)
OKLaboklab(31.36% 0.0378 -0.1598)
OKLCHoklch(31.36% 0.164 283.3)
XYZxyz(5.1726, 2.5454, 20.2933)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E127F #637F12
analogous
#122C7F #2E127F #64127F
triadic
#2E127F #7F2E12 #127F2E
tetradic
#2E127F #7F122C #637F12 #127F64
square
#2E127F #7F122C #637F12 #127F64
split-complementary
#2E127F #7F6412 #2C7F12
monochromatic
#0A041B #1B0A49 #2E127F #411AB5 #592BE1

Accessibility & contrast

On white

13.91
#2E127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E127F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E127F#FFFFFF#000000##FFFFFF
##2E127F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e127f;
/* rgb */ color: rgb(46, 18, 127);
/* oklch */ color: oklch(31.4% 0.164 283.3);
Tailwind
colors: {
  custom: {
    50: '#7356a5',
    500: '#2e127f',
    950: '#000000',
  },
}
SCSS
$custom: #2e127f;
$custom-light: #7356a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e127f",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 255.413,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31356,
    "c": 0.16418,
    "h": 283.3
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#2E127F
secondary
#95B538
accent
#F236C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E127F

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

Preview Lab → · Contrast checker → · Palette generator →

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