#2A2979#2A2979

#2A2979 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.132 H 277.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2A2979
RGBrgb(42, 41, 121)
HSLhsl(241, 49%, 32%)
HSVhsv(241, 66%, 47%)
CMYKcmyk(65.3%, 66.1%, 0%, 52.5%)
CIE-LABlab(21.79, 26.89, -45.57)
CIE-LCHlch(21.79, 52.91, 300.54°)
OKLaboklab(33.69% 0.0165 -0.1313)
OKLCHoklch(33.69% 0.132 277.1)
XYZxyz(5.1979, 3.4582, 18.4790)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2979 #787929
analogous
#295079 #2A2979 #522979
triadic
#2A2979 #792A29 #29792A
tetradic
#2A2979 #792950 #787929 #297952
square
#2A2979 #792950 #787929 #297952
split-complementary
#2A2979 #795229 #507929
monochromatic
#0A0A1E #1A1A4B #2A2979 #3A38A7 #5856C6

Accessibility & contrast

On white

12.41
#2A2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A2979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2979
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2979#FFFFFF#000000##FFFFFF
##2A29791.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2979;
/* rgb */ color: rgb(42, 41, 121);
/* oklch */ color: oklch(33.7% 0.132 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e63a0',
    500: '#2a2979',
    950: '#000000',
  },
}
SCSS
$custom: #2a2979;
$custom-light: #6e63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2979",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 240.75,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33687,
    "c": 0.13231,
    "h": 277.1
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#2A2979
secondary
#AAAB53
accent
#D94FD7
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2979

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

Preview Lab → · Contrast checker → · Palette generator →

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