#2A2A79#2A2A79

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

Color values

HEX#2A2A79
RGBrgb(42, 42, 121)
HSLhsl(240, 48%, 32%)
HSVhsv(240, 65%, 47%)
CMYKcmyk(65.3%, 65.3%, 0%, 52.5%)
CIE-LABlab(22.05, 26.22, -45.16)
CIE-LCHlch(22.05, 52.22, 300.14°)
OKLaboklab(33.87% 0.0155 -0.1301)
OKLCHoklch(33.87% 0.131 276.8)
XYZxyz(5.2329, 3.5282, 18.4907)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A79 #79792A
analogous
#2A5279 #2A2A79 #522A79
triadic
#2A2A79 #792A2A #2A792A
tetradic
#2A2A79 #792A52 #79792A #2A7952
square
#2A2A79 #792A52 #79792A #2A7952
split-complementary
#2A2A79 #79522A #52792A
monochromatic
#0A0A1E #1A1A4C #2A2A79 #3A3AA6 #5858C5

Accessibility & contrast

On white

12.31
#2A2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2A79
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A79#FFFFFF#000000##FFFFFF
##2A2A791.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2a79;
/* rgb */ color: rgb(42, 42, 121);
/* oklch */ color: oklch(33.9% 0.131 276.8);
Tailwind
colors: {
  custom: {
    50: '#6e63a0',
    500: '#2a2a79',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a79;
$custom-light: #6e63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a79",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33872,
    "c": 0.13099,
    "h": 276.8
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#2A2A79
secondary
#ABAB54
accent
#D850D8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2A2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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