#2E2582#2E2582

#2E2582 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.149 H 279.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2E2582
RGBrgb(46, 37, 130)
HSLhsl(246, 56%, 33%)
HSVhsv(246, 72%, 51%)
CMYKcmyk(64.6%, 71.5%, 0%, 49%)
CIE-LABlab(22.00, 33.24, -50.92)
CIE-LCHlch(22.00, 60.81, 303.14°)
OKLaboklab(34.18% 0.0242 -0.1469)
OKLCHoklch(34.18% 0.149 279.4)
XYZxyz(5.8163, 3.5152, 21.4868)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2582 #798225
analogous
#254B82 #2E2582 #5C2582
triadic
#2E2582 #822E25 #25822E
tetradic
#2E2582 #82254B #798225 #25825C
square
#2E2582 #82254B #798225 #25825C
split-complementary
#2E2582 #825C25 #4B8225
monochromatic
#0C0A23 #1D1752 #2E2582 #3F33B2 #5F53CE

Accessibility & contrast

On white

12.33
#2E2582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E2582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2582
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2582#FFFFFF#000000##FFFFFF
##2E25821.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2582;
/* rgb */ color: rgb(46, 37, 130);
/* oklch */ color: oklch(34.2% 0.149 279.4);
Tailwind
colors: {
  custom: {
    50: '#7261a7',
    500: '#2e2582',
    950: '#000000',
  },
}
SCSS
$custom: #2e2582;
$custom-light: #7261a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2582",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 245.806,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.14885,
    "h": 279.4
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#2E2582
secondary
#A9B250
accent
#DF49D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2582

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

Preview Lab → · Contrast checker → · Palette generator →

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