#2E1C8E#2E1C8E

#2E1C8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.174 H 279.1°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1C8E
RGBrgb(46, 28, 142)
HSLhsl(249, 67%, 33%)
HSVhsv(249, 80%, 56%)
CMYKcmyk(67.6%, 80.3%, 0%, 44.3%)
CIE-LABlab(21.45, 42.25, -59.35)
CIE-LCHlch(21.45, 72.86, 305.45°)
OKLaboklab(34.16% 0.0275 -0.1714)
OKLCHoklch(34.16% 0.174 279.1)
XYZxyz(6.4229, 3.3638, 25.8967)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C8E #7C8E1C
analogous
#1C438E #2E1C8E #671C8E
triadic
#2E1C8E #8E2E1C #1C8E2E
tetradic
#2E1C8E #8E1C43 #7C8E1C #1C8E67
square
#2E1C8E #8E1C43 #7C8E1C #1C8E67
split-complementary
#2E1C8E #8E671C #438E1C
monochromatic
#0D0828 #1D125B #2E1C8E #3F26C1 #6049DB

Accessibility & contrast

On white

12.55
#2E1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1C8E
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C8E#FFFFFF#000000##FFFFFF
##2E1C8E1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1c8e;
/* rgb */ color: rgb(46, 28, 142);
/* oklch */ color: oklch(34.2% 0.174 279.1);
Tailwind
colors: {
  custom: {
    50: '#755cb0',
    500: '#2e1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c8e;
$custom-light: #755cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c8e",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 249.474,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3416,
    "c": 0.17359,
    "h": 279.1
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#2E1C8E
secondary
#ABBD49
accent
#EA3ECF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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