#2E186C#2E186C

#2E186C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.135 H 287.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2E186C
RGBrgb(46, 24, 108)
HSLhsl(256, 64%, 26%)
HSVhsv(256, 78%, 42%)
CMYKcmyk(57.4%, 77.8%, 0%, 57.6%)
CIE-LABlab(17.07, 33.66, -44.91)
CIE-LCHlch(17.07, 56.13, 306.85°)
OKLaboklab(30% 0.0399 -0.1292)
OKLCHoklch(30% 0.135 287.2)
XYZxyz(4.1593, 2.3166, 14.4124)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E186C #566C18
analogous
#182C6C #2E186C #58186C
triadic
#2E186C #6C2E18 #186C2E
tetradic
#2E186C #6C182C #566C18 #186C58
square
#2E186C #6C182C #566C18 #186C58
split-complementary
#2E186C #6C5818 #2C6C18
monochromatic
#0B0619 #190D3A #2E186C #43239E #592ED0

Accessibility & contrast

On white

14.35
#2E186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E186C
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E186C#FFFFFF#000000##FFFFFF
##2E186C1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#142F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e186c;
/* rgb */ color: rgb(46, 24, 108);
/* oklch */ color: oklch(30.0% 0.135 287.2);
Tailwind
colors: {
  custom: {
    50: '#6f5797',
    500: '#2e186c',
    950: '#000000',
  },
}
SCSS
$custom: #2e186c;
$custom-light: #6f5797;
$custom-dark: #000000;
JSON
{
  "hex": "#2e186c",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 255.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30002,
    "c": 0.13522,
    "h": 287.2
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#2E186C
secondary
#88A23E
accent
#E741BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E186C

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

Preview Lab → · Contrast checker → · Palette generator →

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