#2E2491#2E2491

#2E2491 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.169 H 277.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2E2491
RGBrgb(46, 36, 145)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 57%)
CMYKcmyk(68.3%, 75.2%, 0%, 43.1%)
CIE-LABlab(23.29, 38.88, -58.17)
CIE-LCHlch(23.29, 69.97, 303.76°)
OKLaboklab(35.55% 0.022 -0.168)
OKLCHoklch(35.55% 0.169 277.5)
XYZxyz(6.8668, 3.8863, 27.1708)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2491 #879124
analogous
#245091 #2E2491 #652491
triadic
#2E2491 #912E24 #24912E
tetradic
#2E2491 #912450 #879124 #249165
square
#2E2491 #912450 #879124 #249165
split-complementary
#2E2491 #916524 #509124
monochromatic
#0F0C2F #1E1860 #2E2491 #3E30C2 #6559D6

Accessibility & contrast

On white

11.82
#2E2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2491
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2491#FFFFFF#000000##FFFFFF
##2E24911.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2491;
/* rgb */ color: rgb(46, 36, 145);
/* oklch */ color: oklch(35.6% 0.169 277.5);
Tailwind
colors: {
  custom: {
    50: '#7561b2',
    500: '#2e2491',
    950: '#000000',
  },
}
SCSS
$custom: #2e2491;
$custom-light: #7561b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2491",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 245.505,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35554,
    "c": 0.16947,
    "h": 277.5
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#2E2491
secondary
#B1BA56
accent
#E344D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2491

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

Preview Lab → · Contrast checker → · Palette generator →

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