#2E1C8D#2E1C8D

#2E1C8D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.172 H 279.3°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1C8D
RGBrgb(46, 28, 141)
HSLhsl(250, 67%, 33%)
HSVhsv(250, 80%, 55%)
CMYKcmyk(67.4%, 80.1%, 0%, 44.7%)
CIE-LABlab(21.33, 41.94, -58.91)
CIE-LCHlch(21.33, 72.32, 305.45°)
OKLaboklab(34.05% 0.0278 -0.1701)
OKLCHoklch(34.05% 0.172 279.3)
XYZxyz(6.3481, 3.3339, 25.5031)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C8D #7B8D1C
analogous
#1C428D #2E1C8D #671C8D
triadic
#2E1C8D #8D2E1C #1C8D2E
tetradic
#2E1C8D #8D1C42 #7B8D1C #1C8D67
square
#2E1C8D #8D1C42 #7B8D1C #1C8D67
split-complementary
#2E1C8D #8D671C #428D1C
monochromatic
#0D0827 #1D125A #2E1C8D #3F26C0 #6049DB

Accessibility & contrast

On white

12.60
#2E1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C8D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C8D#FFFFFF#000000##FFFFFF
##2E1C8D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1c8d;
/* rgb */ color: rgb(46, 28, 141);
/* oklch */ color: oklch(34.1% 0.172 279.3);
Tailwind
colors: {
  custom: {
    50: '#755cb0',
    500: '#2e1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c8d;
$custom-light: #755cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c8d",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 249.558,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3405,
    "c": 0.17237,
    "h": 279.3
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#2E1C8D
secondary
#AABD48
accent
#EA3ECE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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