#2E2786#2E2786

#2E2786 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.152 H 278.3°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2E2786
RGBrgb(46, 39, 134)
HSLhsl(244, 55%, 34%)
HSVhsv(244, 71%, 53%)
CMYKcmyk(65.7%, 70.9%, 0%, 47.5%)
CIE-LABlab(22.84, 33.38, -52.07)
CIE-LCHlch(22.84, 61.85, 302.66°)
OKLaboklab(34.89% 0.022 -0.1502)
OKLCHoklch(34.89% 0.152 278.3)
XYZxyz(6.1539, 3.7526, 22.9497)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2786 #7F8627
analogous
#275086 #2E2786 #5E2786
triadic
#2E2786 #862E27 #27862E
tetradic
#2E2786 #862750 #7F8627 #27865E
square
#2E2786 #862750 #7F8627 #27865E
split-complementary
#2E2786 #865E27 #508627
monochromatic
#0D0B27 #1E1957 #2E2786 #3E35B5 #6159CF

Accessibility & contrast

On white

12.00
#2E2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2786
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2786#FFFFFF#000000##FFFFFF
##2E27861.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2786;
/* rgb */ color: rgb(46, 39, 134);
/* oklch */ color: oklch(34.9% 0.152 278.3);
Tailwind
colors: {
  custom: {
    50: '#7362aa',
    500: '#2e2786',
    950: '#000000',
  },
}
SCSS
$custom: #2e2786;
$custom-light: #7362aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2786",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 244.421,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34895,
    "c": 0.1518,
    "h": 278.3
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#2E2786
secondary
#ADB455
accent
#DE4AD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2786

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

Preview Lab → · Contrast checker → · Palette generator →

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