#2E124F#2E124F

#2E124F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.106 H 300.1°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#2E124F
RGBrgb(46, 18, 79)
HSLhsl(268, 63%, 19%)
HSVhsv(268, 77%, 31%)
CMYKcmyk(41.8%, 77.2%, 0%, 69%)
CIE-LABlab(13.10, 28.16, -32.02)
CIE-LCHlch(13.10, 42.64, 311.33°)
OKLaboklab(26.33% 0.053 -0.0913)
OKLCHoklch(26.33% 0.106 300.1)
XYZxyz(2.7540, 1.5779, 7.5551)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E124F #334F12
analogous
#12154F #2E124F #4D124F
triadic
#2E124F #4F2E12 #124F2E
tetradic
#2E124F #4F1215 #334F12 #124F4D
square
#2E124F #4F1215 #334F12 #124F4D
split-complementary
#2E124F #4F4D12 #154F12
monochromatic
#0F0619 #11071D #2E124F #4B1D81 #6829B3

Accessibility & contrast

On white

15.96
#2E124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E124F
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E124F#FFFFFF#000000##FFFFFF
##2E124F1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#27212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e124f;
/* rgb */ color: rgb(46, 18, 79);
/* oklch */ color: oklch(26.3% 0.106 300.1);
Tailwind
colors: {
  custom: {
    50: '#6a5281',
    500: '#2e124f',
    950: '#000000',
  },
}
SCSS
$custom: #2e124f;
$custom-light: #6a5281;
$custom-dark: #000000;
JSON
{
  "hex": "#2e124f",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 267.541,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26331,
    "c": 0.10561,
    "h": 300.1
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#2E124F
secondary
#628835
accent
#E6429B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E124F

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

Preview Lab → · Contrast checker → · Palette generator →

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