#2E2776#2E2776

#2E2776 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.130 H 280.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2E2776
RGBrgb(46, 39, 118)
HSLhsl(245, 50%, 31%)
HSVhsv(245, 67%, 46%)
CMYKcmyk(61%, 66.9%, 0%, 53.7%)
CIE-LABlab(21.36, 27.83, -44.36)
CIE-LCHlch(21.36, 52.37, 302.11°)
OKLaboklab(33.37% 0.0241 -0.1276)
OKLCHoklch(33.37% 0.13 280.7)
XYZxyz(5.1212, 3.3395, 17.5108)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2776 #6F7627
analogous
#274776 #2E2776 #552776
triadic
#2E2776 #762E27 #27762E
tetradic
#2E2776 #762747 #6F7627 #277655
square
#2E2776 #762747 #6F7627 #277655
split-complementary
#2E2776 #765527 #477627
monochromatic
#0A091A #1C1848 #2E2776 #4036A4 #5C52C6

Accessibility & contrast

On white

12.59
#2E2776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E2776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2776
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2776#FFFFFF#000000##FFFFFF
##2E27761.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#013B4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2776;
/* rgb */ color: rgb(46, 39, 118);
/* oklch */ color: oklch(33.4% 0.130 280.7);
Tailwind
colors: {
  custom: {
    50: '#6f619e',
    500: '#2e2776',
    950: '#000000',
  },
}
SCSS
$custom: #2e2776;
$custom-light: #6f619e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2776",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 245.316,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33368,
    "c": 0.12986,
    "h": 280.7
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#2E2776
secondary
#A0A851
accent
#DA4ECD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2776

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

Preview Lab → · Contrast checker → · Palette generator →

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