#2E2779#2E2779

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

Color values

HEX#2E2779
RGBrgb(46, 39, 121)
HSLhsl(245, 51%, 31%)
HSVhsv(245, 68%, 47%)
CMYKcmyk(62%, 67.8%, 0%, 52.5%)
CIE-LABlab(21.62, 28.88, -45.83)
CIE-LCHlch(21.62, 54.17, 302.21°)
OKLaboklab(33.65% 0.0238 -0.1319)
OKLCHoklch(33.65% 0.134 280.2)
XYZxyz(5.3023, 3.4120, 18.4646)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2779 #727927
analogous
#274979 #2E2779 #572779
triadic
#2E2779 #792E27 #27792E
tetradic
#2E2779 #792749 #727927 #277957
square
#2E2779 #792749 #727927 #277957
split-complementary
#2E2779 #795727 #497927
monochromatic
#0B091C #1C184B #2E2779 #4036A7 #5D53C8

Accessibility & contrast

On white

12.48
#2E2779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2779
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2779#FFFFFF#000000##FFFFFF
##2E27791.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2779;
/* rgb */ color: rgb(46, 39, 121);
/* oklch */ color: oklch(33.6% 0.134 280.2);
Tailwind
colors: {
  custom: {
    50: '#7062a0',
    500: '#2e2779',
    950: '#000000',
  },
}
SCSS
$custom: #2e2779;
$custom-light: #7062a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2779",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 245.122,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33646,
    "c": 0.13407,
    "h": 280.2
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#2E2779
secondary
#A3AB51
accent
#DB4DCF
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E2779

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

Preview Lab → · Contrast checker → · Palette generator →

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