#2E2479#2E2479

#2E2479 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.138 H 281.1°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2E2479
RGBrgb(46, 36, 121)
HSLhsl(247, 54%, 31%)
HSVhsv(247, 70%, 47%)
CMYKcmyk(62%, 70.2%, 0%, 52.5%)
CIE-LABlab(20.91, 30.79, -46.99)
CIE-LCHlch(20.91, 56.18, 303.23°)
OKLaboklab(33.13% 0.0265 -0.1353)
OKLCHoklch(33.13% 0.138 281.1)
XYZxyz(5.2077, 3.2227, 18.4331)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2479 #6F7924
analogous
#244479 #2E2479 #582479
triadic
#2E2479 #792E24 #24792E
tetradic
#2E2479 #792444 #6F7924 #247958
square
#2E2479 #792444 #6F7924 #247958
split-complementary
#2E2479 #795824 #447924
monochromatic
#0A081B #1C164A #2E2479 #4032A8 #5C4DCA

Accessibility & contrast

On white

12.77
#2E2479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2479
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2479#FFFFFF#000000##FFFFFF
##2E24791.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e2479;
/* rgb */ color: rgb(46, 36, 121);
/* oklch */ color: oklch(33.1% 0.138 281.1);
Tailwind
colors: {
  custom: {
    50: '#7060a1',
    500: '#2e2479',
    950: '#000000',
  },
}
SCSS
$custom: #2e2479;
$custom-light: #7060a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2479",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 247.059,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33134,
    "c": 0.13792,
    "h": 281.1
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#2E2479
secondary
#A0AC4D
accent
#DE4ACC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E2479

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

Preview Lab → · Contrast checker → · Palette generator →

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