#2E126F#2E126F

#2E126F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.145 H 287.5°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2E126F
RGBrgb(46, 18, 111)
HSLhsl(258, 72%, 25%)
HSVhsv(258, 84%, 44%)
CMYKcmyk(58.6%, 83.8%, 0%, 56.5%)
CIE-LABlab(16.31, 37.66, -48.11)
CIE-LCHlch(16.31, 61.10, 308.05°)
OKLaboklab(29.57% 0.0436 -0.1385)
OKLCHoklch(29.57% 0.145 287.5)
XYZxyz(4.2114, 2.1609, 15.2310)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E126F #536F12
analogous
#12246F #2E126F #5D126F
triadic
#2E126F #6F2E12 #126F2E
tetradic
#2E126F #6F1224 #536F12 #126F5D
square
#2E126F #6F1224 #536F12 #126F5D
split-complementary
#2E126F #6F5D12 #246F12
monochromatic
#0B041A #18093A #2E126F #441BA4 #5A23D8

Accessibility & contrast

On white

14.66
#2E126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E126F
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E126F#FFFFFF#000000##FFFFFF
##2E126F1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#112E41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e126f;
/* rgb */ color: rgb(46, 18, 111);
/* oklch */ color: oklch(29.6% 0.145 287.5);
Tailwind
colors: {
  custom: {
    50: '#705499',
    500: '#2e126f',
    950: '#000000',
  },
}
SCSS
$custom: #2e126f;
$custom-light: #705499;
$custom-dark: #000000;
JSON
{
  "hex": "#2e126f",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 258.065,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29568,
    "c": 0.14522,
    "h": 287.5
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#2E126F
secondary
#85A637
accent
#EF39B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E126F

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

Preview Lab → · Contrast checker → · Palette generator →

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