#2E2580#2E2580

#2E2580 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.146 H 279.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2E2580
RGBrgb(46, 37, 128)
HSLhsl(246, 55%, 32%)
HSVhsv(246, 71%, 50%)
CMYKcmyk(64.1%, 71.1%, 0%, 49.8%)
CIE-LABlab(21.81, 32.56, -49.98)
CIE-LCHlch(21.81, 59.65, 303.08°)
OKLaboklab(33.98% 0.0246 -0.1441)
OKLCHoklch(33.98% 0.146 279.7)
XYZxyz(5.6833, 3.4621, 20.7866)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2580 #778025
analogous
#254A80 #2E2580 #5C2580
triadic
#2E2580 #802E25 #25802E
tetradic
#2E2580 #80254A #778025 #25805C
square
#2E2580 #80254A #778025 #25805C
split-complementary
#2E2580 #805C25 #4A8025
monochromatic
#0C0A21 #1D1751 #2E2580 #3F33AF #5E52CD

Accessibility & contrast

On white

12.41
#2E2580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E2580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2580
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2580#FFFFFF#000000##FFFFFF
##2E25801.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2580;
/* rgb */ color: rgb(46, 37, 128);
/* oklch */ color: oklch(34.0% 0.146 279.7);
Tailwind
colors: {
  custom: {
    50: '#7160a6',
    500: '#2e2580',
    950: '#000000',
  },
}
SCSS
$custom: #2e2580;
$custom-light: #7160a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2580",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 128
  },
  "hsl": {
    "h": 245.934,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33979,
    "c": 0.14616,
    "h": 279.7
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#2E2580
secondary
#A8B150
accent
#DE49D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2E2580

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

Preview Lab → · Contrast checker → · Palette generator →

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