#2E123F#2E123F

#2E123F is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.085 H 310.3°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2E123F
RGBrgb(46, 18, 63)
HSLhsl(277, 56%, 16%)
HSVhsv(277, 71%, 25%)
CMYKcmyk(27%, 71.4%, 0%, 75.3%)
CIE-LABlab(11.77, 23.65, -23.01)
CIE-LCHlch(11.77, 32.99, 315.79°)
OKLaboklab(24.96% 0.055 -0.0648)
OKLCHoklch(24.96% 0.085 310.3)
XYZxyz(2.2401, 1.3724, 4.8486)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E123F #233F12
analogous
#17123F #2E123F #3F1239
triadic
#2E123F #3F2E12 #123F2E
tetradic
#2E123F #3F1712 #233F12 #12393F
square
#2E123F #3F1712 #233F12 #12393F
split-complementary
#2E123F #393F12 #123F17
monochromatic
#110718 #110718 #2E123F #51206F #742D9E

Accessibility & contrast

On white

16.48
#2E123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2E123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E123F
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E123F#FFFFFF#000000##FFFFFF
##2E123F1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E40
Deuteranopia (green-blind)
#0D203E
Tritanopia (blue-blind)
#2C1B26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e123f;
/* rgb */ color: rgb(46, 18, 63);
/* oklch */ color: oklch(25.0% 0.085 310.3);
Tailwind
colors: {
  custom: {
    50: '#695274',
    500: '#2e123f',
    950: '#000000',
  },
}
SCSS
$custom: #2e123f;
$custom-light: #695274;
$custom-dark: #000000;
JSON
{
  "hex": "#2e123f",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 277.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24963,
    "c": 0.08505,
    "h": 310.3
  },
  "luminance": 0.01372
}

Semantic roles & 50–950 ramp

primary
#2E123F
secondary
#4E7835
accent
#DF4982
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E123F

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

Preview Lab → · Contrast checker → · Palette generator →

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