#2E1E8C#2E1E8C

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

Color values

HEX#2E1E8C
RGBrgb(46, 30, 140)
HSLhsl(249, 65%, 33%)
HSVhsv(249, 79%, 55%)
CMYKcmyk(67.1%, 78.6%, 0%, 45.1%)
CIE-LABlab(21.59, 40.58, -57.87)
CIE-LCHlch(21.59, 70.68, 305.04°)
OKLaboklab(34.19% 0.0269 -0.1671)
OKLCHoklch(34.19% 0.169 279.1)
XYZxyz(6.3231, 3.4023, 25.1294)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E8C #7C8C1E
analogous
#1E458C #2E1E8C #651E8C
triadic
#2E1E8C #8C2E1E #1E8C2E
tetradic
#2E1E8C #8C1E45 #7C8C1E #1E8C65
square
#2E1E8C #8C1E45 #7C8C1E #1E8C65
split-complementary
#2E1E8C #8C651E #458C1E
monochromatic
#0D0827 #1D135A #2E1E8C #3F29BE #604CD9

Accessibility & contrast

On white

12.50
#2E1E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1E8C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E8C#FFFFFF#000000##FFFFFF
##2E1E8C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1e8c;
/* rgb */ color: rgb(46, 30, 140);
/* oklch */ color: oklch(34.2% 0.169 279.1);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2e1e8c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e8c;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e8c",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 248.727,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.16926,
    "h": 279.1
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#2E1E8C
secondary
#ABBB4B
accent
#E840CF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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