#2E127E#2E127E

#2E127E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.163 H 283.5°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2E127E
RGBrgb(46, 18, 126)
HSLhsl(256, 75%, 28%)
HSVhsv(256, 86%, 49%)
CMYKcmyk(63.5%, 85.7%, 0%, 50.6%)
CIE-LABlab(18.01, 42.10, -54.97)
CIE-LCHlch(18.01, 69.24, 307.45°)
OKLaboklab(31.24% 0.0381 -0.1585)
OKLCHoklch(31.24% 0.163 283.5)
XYZxyz(5.1078, 2.5195, 19.9518)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E127E #627E12
analogous
#122C7E #2E127E #64127E
triadic
#2E127E #7E2E12 #127E2E
tetradic
#2E127E #7E122C #627E12 #127E64
square
#2E127E #7E122C #627E12 #127E64
split-complementary
#2E127E #7E6412 #2C7E12
monochromatic
#0A041B #1A0A48 #2E127E #421AB4 #592AE1

Accessibility & contrast

On white

13.96
#2E127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E127E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E127E#FFFFFF#000000##FFFFFF
##2E127E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e127e;
/* rgb */ color: rgb(46, 18, 126);
/* oklch */ color: oklch(31.2% 0.163 283.5);
Tailwind
colors: {
  custom: {
    50: '#7355a5',
    500: '#2e127e',
    950: '#000000',
  },
}
SCSS
$custom: #2e127e;
$custom-light: #7355a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e127e",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 255.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31242,
    "c": 0.16301,
    "h": 283.5
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#2E127E
secondary
#94B438
accent
#F236C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E127E

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

Preview Lab → · Contrast checker → · Palette generator →

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