#2E107E#2E107E

#2E107E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.165 H 283.8°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2E107E
RGBrgb(46, 16, 126)
HSLhsl(256, 77%, 28%)
HSVhsv(256, 87%, 49%)
CMYKcmyk(63.5%, 87.3%, 0%, 50.6%)
CIE-LABlab(17.72, 42.93, -55.43)
CIE-LCHlch(17.72, 70.11, 307.76°)
OKLaboklab(31.05% 0.0392 -0.1598)
OKLCHoklch(31.05% 0.165 283.8)
XYZxyz(5.0767, 2.4574, 19.9414)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E107E #607E10
analogous
#10297E #2E107E #65107E
triadic
#2E107E #7E2E10 #107E2E
tetradic
#2E107E #7E1029 #607E10 #107E65
square
#2E107E #7E1029 #607E10 #107E65
split-complementary
#2E107E #7E6510 #297E10
monochromatic
#0A031B #1A0948 #2E107E #4217B4 #5925E3

Accessibility & contrast

On white

14.08
#2E107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E107E
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E107E#FFFFFF#000000##FFFFFF
##2E107E1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003349
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e107e;
/* rgb */ color: rgb(46, 16, 126);
/* oklch */ color: oklch(31.0% 0.165 283.8);
Tailwind
colors: {
  custom: {
    50: '#7355a5',
    500: '#2e107e',
    950: '#000000',
  },
}
SCSS
$custom: #2e107e;
$custom-light: #7355a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e107e",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 256.364,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31049,
    "c": 0.16454,
    "h": 283.8
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#2E107E
secondary
#92B436
accent
#F434C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E107E

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

Preview Lab → · Contrast checker → · Palette generator →

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