#2A2084#2A2084

#2A2084 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.158 H 277.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2A2084
RGBrgb(42, 32, 132)
HSLhsl(246, 61%, 32%)
HSVhsv(246, 76%, 52%)
CMYKcmyk(68.2%, 75.8%, 0%, 48.2%)
CIE-LABlab(20.79, 36.38, -54.18)
CIE-LCHlch(20.79, 65.26, 303.88°)
OKLaboklab(33.29% 0.0218 -0.1565)
OKLCHoklch(33.29% 0.158 277.9)
XYZxyz(5.6349, 3.1907, 22.1442)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2084 #7A8420
analogous
#204884 #2A2084 #5C2084
triadic
#2A2084 #842A20 #20842A
tetradic
#2A2084 #842048 #7A8420 #20845C
square
#2A2084 #842048 #7A8420 #20845C
split-complementary
#2A2084 #845C20 #488420
monochromatic
#0B0821 #1A1453 #2A2084 #3A2CB5 #594BD3

Accessibility & contrast

On white

12.82
#2A2084 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A2084 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2084
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2084#FFFFFF#000000##FFFFFF
##2A20841.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2084;
/* rgb */ color: rgb(42, 32, 132);
/* oklch */ color: oklch(33.3% 0.158 277.9);
Tailwind
colors: {
  custom: {
    50: '#715da9',
    500: '#2a2084',
    950: '#000000',
  },
}
SCSS
$custom: #2a2084;
$custom-light: #715da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2084",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 132
  },
  "hsl": {
    "h": 246,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33293,
    "c": 0.15799,
    "h": 277.9
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#2A2084
secondary
#ABB64A
accent
#E444D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2084

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

Preview Lab → · Contrast checker → · Palette generator →

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