#2E2785#2E2785

#2E2785 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.150 H 278.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2E2785
RGBrgb(46, 39, 133)
HSLhsl(244, 55%, 34%)
HSVhsv(244, 71%, 52%)
CMYKcmyk(65.4%, 70.7%, 0%, 47.8%)
CIE-LABlab(22.74, 33.03, -51.60)
CIE-LCHlch(22.74, 61.26, 302.63°)
OKLaboklab(34.8% 0.0221 -0.1488)
OKLCHoklch(34.8% 0.15 278.5)
XYZxyz(6.0845, 3.7249, 22.5841)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2785 #7E8527
analogous
#274F85 #2E2785 #5D2785
triadic
#2E2785 #852E27 #27852E
tetradic
#2E2785 #85274F #7E8527 #27855D
square
#2E2785 #85274F #7E8527 #27855D
split-complementary
#2E2785 #855D27 #4F8527
monochromatic
#0D0B26 #1E1956 #2E2785 #3E35B4 #6158CE

Accessibility & contrast

On white

12.03
#2E2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2785
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2785#FFFFFF#000000##FFFFFF
##2E27851.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2785;
/* rgb */ color: rgb(46, 39, 133);
/* oklch */ color: oklch(34.8% 0.150 278.5);
Tailwind
colors: {
  custom: {
    50: '#7262a9',
    500: '#2e2785',
    950: '#000000',
  },
}
SCSS
$custom: #2e2785;
$custom-light: #7262a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2785",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 244.468,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34797,
    "c": 0.15047,
    "h": 278.5
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2785

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

Preview Lab → · Contrast checker → · Palette generator →

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