#2E2784#2E2784

#2E2784 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.149 H 278.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2E2784
RGBrgb(46, 39, 132)
HSLhsl(245, 54%, 34%)
HSVhsv(245, 70%, 52%)
CMYKcmyk(65.2%, 70.5%, 0%, 48.2%)
CIE-LABlab(22.64, 32.69, -51.12)
CIE-LCHlch(22.64, 60.68, 302.60°)
OKLaboklab(34.7% 0.0223 -0.1474)
OKLCHoklch(34.7% 0.149 278.6)
XYZxyz(6.0158, 3.6973, 22.2220)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2784 #7D8427
analogous
#274E84 #2E2784 #5C2784
triadic
#2E2784 #842E27 #27842E
tetradic
#2E2784 #84274E #7D8427 #27845C
square
#2E2784 #84274E #7D8427 #27845C
split-complementary
#2E2784 #845C27 #4E8427
monochromatic
#0D0B26 #1E1955 #2E2784 #3E35B3 #6158CE

Accessibility & contrast

On white

12.07
#2E2784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E2784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2784
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2784#FFFFFF#000000##FFFFFF
##2E27841.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2784;
/* rgb */ color: rgb(46, 39, 132);
/* oklch */ color: oklch(34.7% 0.149 278.6);
Tailwind
colors: {
  custom: {
    50: '#7262a9',
    500: '#2e2784',
    950: '#000000',
  },
}
SCSS
$custom: #2e2784;
$custom-light: #7262a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2784",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 132
  },
  "hsl": {
    "h": 244.516,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34699,
    "c": 0.14913,
    "h": 278.6
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#2E2784
secondary
#ABB254
accent
#DE4AD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2784

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

Preview Lab → · Contrast checker → · Palette generator →

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