#2E1C8C#2E1C8C

#2E1C8C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.171 H 279.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2E1C8C
RGBrgb(46, 28, 140)
HSLhsl(250, 67%, 33%)
HSVhsv(250, 80%, 55%)
CMYKcmyk(67.1%, 80%, 0%, 45.1%)
CIE-LABlab(21.22, 41.63, -58.47)
CIE-LCHlch(21.22, 71.78, 305.45°)
OKLaboklab(33.94% 0.0281 -0.1688)
OKLCHoklch(33.94% 0.171 279.4)
XYZxyz(6.2741, 3.3043, 25.1130)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C8C #7A8C1C
analogous
#1C428C #2E1C8C #661C8C
triadic
#2E1C8C #8C2E1C #1C8C2E
tetradic
#2E1C8C #8C1C42 #7A8C1C #1C8C66
square
#2E1C8C #8C1C42 #7A8C1C #1C8C66
split-complementary
#2E1C8C #8C661C #428C1C
monochromatic
#0C0826 #1D1259 #2E1C8C #3F26BF #6048DA

Accessibility & contrast

On white

12.64
#2E1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C8C
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C8C#FFFFFF#000000##FFFFFF
##2E1C8C1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1c8c;
/* rgb */ color: rgb(46, 28, 140);
/* oklch */ color: oklch(33.9% 0.171 279.4);
Tailwind
colors: {
  custom: {
    50: '#755caf',
    500: '#2e1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c8c;
$custom-light: #755caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c8c",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 249.643,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33939,
    "c": 0.17116,
    "h": 279.4
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#2E1C8C
secondary
#AABC48
accent
#EA3ECE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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