#2E2778#2E2778

#2E2778 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.133 H 280.4°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2E2778
RGBrgb(46, 39, 120)
HSLhsl(245, 51%, 31%)
HSVhsv(245, 68%, 47%)
CMYKcmyk(61.7%, 67.5%, 0%, 52.9%)
CIE-LABlab(21.53, 28.53, -45.34)
CIE-LCHlch(21.53, 53.57, 302.18°)
OKLaboklab(33.55% 0.0239 -0.1305)
OKLCHoklch(33.55% 0.133 280.4)
XYZxyz(5.2413, 3.3876, 18.1433)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2778 #717827
analogous
#274878 #2E2778 #562778
triadic
#2E2778 #782E27 #27782E
tetradic
#2E2778 #782748 #717827 #277856
square
#2E2778 #782748 #717827 #277856
split-complementary
#2E2778 #785627 #487827
monochromatic
#0B091C #1C184A #2E2778 #4036A6 #5D52C7

Accessibility & contrast

On white

12.52
#2E2778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E2778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2778
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2778#FFFFFF#000000##FFFFFF
##2E27781.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2778;
/* rgb */ color: rgb(46, 39, 120);
/* oklch */ color: oklch(33.6% 0.133 280.4);
Tailwind
colors: {
  custom: {
    50: '#7062a0',
    500: '#2e2778',
    950: '#000000',
  },
}
SCSS
$custom: #2e2778;
$custom-light: #7062a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2778",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 245.185,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33553,
    "c": 0.13267,
    "h": 280.4
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#2E2778
secondary
#A2AA51
accent
#DA4DCE
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2E2778

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

Preview Lab → · Contrast checker → · Palette generator →

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