#2E2889#2E2889

#2E2889 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.155 H 277.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2E2889
RGBrgb(46, 40, 137)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 54%)
CMYKcmyk(66.4%, 70.8%, 0%, 46.3%)
CIE-LABlab(23.35, 33.79, -53.10)
CIE-LCHlch(23.35, 62.94, 302.47°)
OKLaboklab(35.35% 0.0207 -0.1532)
OKLCHoklch(35.35% 0.155 277.7)
XYZxyz(6.3994, 3.9040, 24.0784)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2889 #838928
analogous
#285389 #2E2889 #5E2889
triadic
#2E2889 #892E28 #28892E
tetradic
#2E2889 #892853 #838928 #28895E
square
#2E2889 #892853 #838928 #28895E
split-complementary
#2E2889 #895E28 #538928
monochromatic
#0E0C2A #1E1A5A #2E2889 #3E36B8 #635CCF

Accessibility & contrast

On white

11.79
#2E2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2889
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2889#FFFFFF#000000##FFFFFF
##2E28891.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2889;
/* rgb */ color: rgb(46, 40, 137);
/* oklch */ color: oklch(35.4% 0.155 277.7);
Tailwind
colors: {
  custom: {
    50: '#7363ac',
    500: '#2e2889',
    950: '#000000',
  },
}
SCSS
$custom: #2e2889;
$custom-light: #7363ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2889",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 243.711,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.15462,
    "h": 277.7
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#2E2889
secondary
#AFB558
accent
#DE4AD5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2889

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

Preview Lab → · Contrast checker → · Palette generator →

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