#2E2480#2E2480

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

Color values

HEX#2E2480
RGBrgb(46, 36, 128)
HSLhsl(247, 56%, 32%)
HSVhsv(247, 72%, 50%)
CMYKcmyk(64.1%, 71.9%, 0%, 49.8%)
CIE-LABlab(21.58, 33.18, -50.35)
CIE-LCHlch(21.58, 60.29, 303.38°)
OKLaboklab(33.82% 0.0254 -0.1452)
OKLCHoklch(33.82% 0.147 279.9)
XYZxyz(5.6526, 3.4007, 20.7764)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2480 #768024
analogous
#244880 #2E2480 #5C2480
triadic
#2E2480 #802E24 #24802E
tetradic
#2E2480 #802448 #768024 #24805C
square
#2E2480 #802448 #768024 #24805C
split-complementary
#2E2480 #805C24 #488024
monochromatic
#0C0920 #1D1750 #2E2480 #3F31B0 #5E50CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E2480#FFFFFF#000000##FFFFFF
##2E24801.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)
#003783
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2480;
/* rgb */ color: rgb(46, 36, 128);
/* oklch */ color: oklch(33.8% 0.147 279.9);
Tailwind
colors: {
  custom: {
    50: '#7260a6',
    500: '#2e2480',
    950: '#000000',
  },
}
SCSS
$custom: #2e2480;
$custom-light: #7260a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2480",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 128
  },
  "hsl": {
    "h": 246.522,
    "s": 56.098,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33818,
    "c": 0.14736,
    "h": 279.9
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#2E2480
secondary
#A7B24E
accent
#DF48CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2E2480

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

Preview Lab → · Contrast checker → · Palette generator →

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