#2E1E8F#2E1E8F

#2E1E8F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.173 H 278.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1E8F
RGBrgb(46, 30, 143)
HSLhsl(248, 65%, 34%)
HSVhsv(248, 79%, 56%)
CMYKcmyk(67.8%, 79%, 0%, 43.9%)
CIE-LABlab(21.92, 41.54, -59.20)
CIE-LCHlch(21.92, 72.32, 305.05°)
OKLaboklab(34.52% 0.0261 -0.171)
OKLCHoklch(34.52% 0.173 278.7)
XYZxyz(6.5473, 3.4920, 26.3103)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E8F #7F8F1E
analogous
#1E478F #2E1E8F #671E8F
triadic
#2E1E8F #8F2E1E #1E8F2E
tetradic
#2E1E8F #8F1E47 #7F8F1E #1E8F67
square
#2E1E8F #8F1E47 #7F8F1E #1E8F67
split-complementary
#2E1E8F #8F671E #478F1E
monochromatic
#0D092A #1E135C #2E1E8F #3E29C2 #614EDA

Accessibility & contrast

On white

12.36
#2E1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E8F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E8F#FFFFFF#000000##FFFFFF
##2E1E8F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1e8f;
/* rgb */ color: rgb(46, 30, 143);
/* oklch */ color: oklch(34.5% 0.173 278.7);
Tailwind
colors: {
  custom: {
    50: '#755db1',
    500: '#2e1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e8f;
$custom-light: #755db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e8f",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 248.496,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.17296,
    "h": 278.7
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#2E1E8F
secondary
#ADBC4C
accent
#E840D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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