#2E1C8F#2E1C8F

#2E1C8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.175 H 279.0°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1C8F
RGBrgb(46, 28, 143)
HSLhsl(249, 67%, 34%)
HSVhsv(249, 80%, 56%)
CMYKcmyk(67.8%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.56, 42.57, -59.79)
CIE-LCHlch(21.56, 73.40, 305.45°)
OKLaboklab(34.27% 0.0272 -0.1727)
OKLCHoklch(34.27% 0.175 279)
XYZxyz(6.4983, 3.3940, 26.2939)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C8F #7D8F1C
analogous
#1C438F #2E1C8F #671C8F
triadic
#2E1C8F #8F2E1C #1C8F2E
tetradic
#2E1C8F #8F1C43 #7D8F1C #1C8F67
square
#2E1C8F #8F1C43 #7D8F1C #1C8F67
split-complementary
#2E1C8F #8F671C #438F1C
monochromatic
#0D0829 #1E125C #2E1C8F #3E26C2 #614ADC

Accessibility & contrast

On white

12.51
#2E1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C8F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C8F#FFFFFF#000000##FFFFFF
##2E1C8F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1c8f;
/* rgb */ color: rgb(46, 28, 143);
/* oklch */ color: oklch(34.3% 0.175 279.0);
Tailwind
colors: {
  custom: {
    50: '#765cb1',
    500: '#2e1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c8f;
$custom-light: #765cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c8f",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 249.391,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34271,
    "c": 0.17481,
    "h": 279
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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