#2A2282#2A2282

#2A2282 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.153 H 277.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2A2282
RGBrgb(42, 34, 130)
HSLhsl(245, 59%, 32%)
HSVhsv(245, 74%, 51%)
CMYKcmyk(67.7%, 73.8%, 0%, 49%)
CIE-LABlab(21.01, 34.51, -52.56)
CIE-LCHlch(21.01, 62.88, 303.29°)
OKLaboklab(33.39% 0.0209 -0.1518)
OKLCHoklch(33.39% 0.153 277.8)
XYZxyz(5.5548, 3.2475, 21.4489)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2282 #7A8222
analogous
#224A82 #2A2282 #5A2282
triadic
#2A2282 #822A22 #22822A
tetradic
#2A2282 #82224A #7A8222 #22825A
square
#2A2282 #82224A #7A8222 #22825A
split-complementary
#2A2282 #825A22 #4A8222
monochromatic
#0B0921 #1A1551 #2A2282 #3A2FB3 #594ED1

Accessibility & contrast

On white

12.73
#2A2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2282
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2282#FFFFFF#000000##FFFFFF
##2A22821.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2282;
/* rgb */ color: rgb(42, 34, 130);
/* oklch */ color: oklch(33.4% 0.153 277.8);
Tailwind
colors: {
  custom: {
    50: '#705ea7',
    500: '#2a2282',
    950: '#000000',
  },
}
SCSS
$custom: #2a2282;
$custom-light: #705ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2282",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 245,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33385,
    "c": 0.15319,
    "h": 277.8
  },
  "luminance": 0.03248
}

Semantic roles & 50–950 ramp

primary
#2A2282
secondary
#ABB44C
accent
#E246D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2282

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

Preview Lab → · Contrast checker → · Palette generator →

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