#2E2478#2E2478

#2E2478 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.137 H 281.3°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2E2478
RGBrgb(46, 36, 120)
HSLhsl(247, 54%, 31%)
HSVhsv(247, 70%, 47%)
CMYKcmyk(61.7%, 70%, 0%, 52.9%)
CIE-LABlab(20.82, 30.45, -46.51)
CIE-LCHlch(20.82, 55.59, 303.21°)
OKLaboklab(33.04% 0.0267 -0.1339)
OKLCHoklch(33.04% 0.137 281.3)
XYZxyz(5.1467, 3.1983, 18.1118)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2478 #6E7824
analogous
#244478 #2E2478 #582478
triadic
#2E2478 #782E24 #24782E
tetradic
#2E2478 #782444 #6E7824 #247858
square
#2E2478 #782444 #6E7824 #247858
split-complementary
#2E2478 #785824 #447824
monochromatic
#0A081A #1C1649 #2E2478 #4032A7 #5C4DCA

Accessibility & contrast

On white

12.81
#2E2478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E2478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2478
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2478#FFFFFF#000000##FFFFFF
##2E24781.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e2478;
/* rgb */ color: rgb(46, 36, 120);
/* oklch */ color: oklch(33.0% 0.137 281.3);
Tailwind
colors: {
  custom: {
    50: '#705fa0',
    500: '#2e2478',
    950: '#000000',
  },
}
SCSS
$custom: #2e2478;
$custom-light: #705fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2478",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 247.143,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33037,
    "c": 0.13655,
    "h": 281.3
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#2E2478
secondary
#9FAB4D
accent
#DD4BCC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2E2478

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

Preview Lab → · Contrast checker → · Palette generator →

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