#2E2979#2E2979

#2E2979 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.131 H 279.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2E2979
RGBrgb(46, 41, 121)
HSLhsl(244, 49%, 32%)
HSVhsv(244, 66%, 47%)
CMYKcmyk(62%, 66.1%, 0%, 52.5%)
CIE-LABlab(22.11, 27.58, -45.04)
CIE-LCHlch(22.11, 52.81, 301.48°)
OKLaboklab(34% 0.0219 -0.1296)
OKLCHoklch(34% 0.131 279.6)
XYZxyz(5.3697, 3.5468, 18.4871)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2979 #747929
analogous
#294C79 #2E2979 #562979
triadic
#2E2979 #792E29 #29792E
tetradic
#2E2979 #79294C #747929 #297956
square
#2E2979 #79294C #747929 #297956
split-complementary
#2E2979 #795629 #4C7929
monochromatic
#0B0A1E #1D1A4B #2E2979 #3F38A7 #5D56C6

Accessibility & contrast

On white

12.29
#2E2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E2979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2979
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2979#FFFFFF#000000##FFFFFF
##2E29791.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2979;
/* rgb */ color: rgb(46, 41, 121);
/* oklch */ color: oklch(34.0% 0.131 279.6);
Tailwind
colors: {
  custom: {
    50: '#7063a0',
    500: '#2e2979',
    950: '#000000',
  },
}
SCSS
$custom: #2e2979;
$custom-light: #7063a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2979",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 243.75,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34002,
    "c": 0.13142,
    "h": 279.6
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#2E2979
secondary
#A5AB53
accent
#D94FD0
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2E2979

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

Preview Lab → · Contrast checker → · Palette generator →

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