#2E2789#2E2789

#2E2789 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.156 H 277.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2E2789
RGBrgb(46, 39, 137)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 72%, 54%)
CMYKcmyk(66.4%, 71.5%, 0%, 46.3%)
CIE-LABlab(23.13, 34.41, -53.47)
CIE-LCHlch(23.13, 63.58, 302.76°)
OKLaboklab(35.19% 0.0215 -0.1543)
OKLCHoklch(35.19% 0.156 277.9)
XYZxyz(6.3661, 3.8375, 24.0673)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2789 #828927
analogous
#275189 #2E2789 #5F2789
triadic
#2E2789 #892E27 #27892E
tetradic
#2E2789 #892751 #828927 #27895F
square
#2E2789 #892751 #828927 #27895F
split-complementary
#2E2789 #895F27 #518927
monochromatic
#0E0C2A #1E1959 #2E2789 #3E35B9 #635AD0

Accessibility & contrast

On white

11.88
#2E2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2789
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2789#FFFFFF#000000##FFFFFF
##2E27891.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2789;
/* rgb */ color: rgb(46, 39, 137);
/* oklch */ color: oklch(35.2% 0.156 277.9);
Tailwind
colors: {
  custom: {
    50: '#7362ac',
    500: '#2e2789',
    950: '#000000',
  },
}
SCSS
$custom: #2e2789;
$custom-light: #7362ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2789",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 244.286,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35193,
    "c": 0.15579,
    "h": 277.9
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#2E2789
secondary
#AEB557
accent
#DF49D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2789

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

Preview Lab → · Contrast checker → · Palette generator →

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