#2A2A82#2A2A82

#2A2A82 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.144 H 275.9°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2A2A82
RGBrgb(42, 42, 130)
HSLhsl(240, 51%, 34%)
HSVhsv(240, 68%, 51%)
CMYKcmyk(67.7%, 67.7%, 0%, 49%)
CIE-LABlab(22.86, 29.47, -49.53)
CIE-LCHlch(22.86, 57.63, 300.76°)
OKLaboklab(34.72% 0.0148 -0.1429)
OKLCHoklch(34.72% 0.144 275.9)
XYZxyz(5.8108, 3.7594, 21.5342)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A82 #82822A
analogous
#2A5682 #2A2A82 #562A82
triadic
#2A2A82 #822A2A #2A822A
tetradic
#2A2A82 #822A56 #82822A #2A8256
square
#2A2A82 #822A56 #82822A #2A8256
split-complementary
#2A2A82 #82562A #56822A
monochromatic
#0C0C25 #1B1B54 #2A2A82 #3939B0 #5C5CCA

Accessibility & contrast

On white

11.99
#2A2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A82
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A82#FFFFFF#000000##FFFFFF
##2A2A821.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2a82;
/* rgb */ color: rgb(42, 42, 130);
/* oklch */ color: oklch(34.7% 0.144 275.9);
Tailwind
colors: {
  custom: {
    50: '#7064a7',
    500: '#2a2a82',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a82;
$custom-light: #7064a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a82",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 240,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34718,
    "c": 0.14364,
    "h": 275.9
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#2A2A82
secondary
#B0B058
accent
#DB4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2A2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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