#2A2A78#2A2A78

#2A2A78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.130 H 276.9°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2A2A78
RGBrgb(42, 42, 120)
HSLhsl(240, 48%, 32%)
HSVhsv(240, 65%, 47%)
CMYKcmyk(65%, 65%, 0%, 52.9%)
CIE-LABlab(21.96, 25.86, -44.66)
CIE-LCHlch(21.96, 51.61, 300.07°)
OKLaboklab(33.78% 0.0156 -0.1286)
OKLCHoklch(33.78% 0.13 276.9)
XYZxyz(5.1719, 3.5038, 18.1694)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A78 #78782A
analogous
#2A5178 #2A2A78 #512A78
triadic
#2A2A78 #782A2A #2A782A
tetradic
#2A2A78 #782A51 #78782A #2A7851
square
#2A2A78 #782A51 #78782A #2A7851
split-complementary
#2A2A78 #78512A #51782A
monochromatic
#0A0A1D #1A1A4B #2A2A78 #3A3AA5 #5858C5

Accessibility & contrast

On white

12.35
#2A2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A78
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A78#FFFFFF#000000##FFFFFF
##2A2A781.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2a78;
/* rgb */ color: rgb(42, 42, 120);
/* oklch */ color: oklch(33.8% 0.130 276.9);
Tailwind
colors: {
  custom: {
    50: '#6d63a0',
    500: '#2a2a78',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a78;
$custom-light: #6d63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a78",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3378,
    "c": 0.12955,
    "h": 276.9
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#2A2A78
secondary
#AAAA54
accent
#D850D8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050F
muted
#7A797E

Preview Lab

Preview with #2A2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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