#2A2982#2A2982

#2A2982 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.145 H 276.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2A2982
RGBrgb(42, 41, 130)
HSLhsl(241, 52%, 34%)
HSVhsv(241, 68%, 51%)
CMYKcmyk(67.7%, 68.5%, 0%, 49%)
CIE-LABlab(22.62, 30.12, -49.92)
CIE-LCHlch(22.62, 58.31, 301.11°)
OKLaboklab(34.54% 0.0156 -0.144)
OKLCHoklch(34.54% 0.145 276.2)
XYZxyz(5.7757, 3.6893, 21.5225)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2982 #818229
analogous
#295482 #2A2982 #562982
triadic
#2A2982 #822A29 #29822A
tetradic
#2A2982 #822954 #818229 #298256
square
#2A2982 #822954 #818229 #298256
split-complementary
#2A2982 #825629 #548229
monochromatic
#0C0C25 #1B1A53 #2A2982 #3938B1 #5C5ACB

Accessibility & contrast

On white

12.08
#2A2982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2982
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2982#FFFFFF#000000##FFFFFF
##2A29821.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2982;
/* rgb */ color: rgb(42, 41, 130);
/* oklch */ color: oklch(34.5% 0.145 276.2);
Tailwind
colors: {
  custom: {
    50: '#7063a7',
    500: '#2a2982',
    950: '#000000',
  },
}
SCSS
$custom: #2a2982;
$custom-light: #7063a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2982",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 130
  },
  "hsl": {
    "h": 240.674,
    "s": 52.047,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34541,
    "c": 0.14489,
    "h": 276.2
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#2A2982
secondary
#AFB056
accent
#DB4CDA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2A2982

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

Preview Lab → · Contrast checker → · Palette generator →

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