#2A2182#2A2182

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

Color values

HEX#2A2182
RGBrgb(42, 33, 130)
HSLhsl(246, 60%, 32%)
HSVhsv(246, 75%, 51%)
CMYKcmyk(67.7%, 74.6%, 0%, 49%)
CIE-LABlab(20.79, 35.11, -52.92)
CIE-LCHlch(20.79, 63.51, 303.57°)
OKLaboklab(33.23% 0.0216 -0.1528)
OKLCHoklch(33.23% 0.154 278)
XYZxyz(5.5267, 3.1912, 21.4395)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2182 #798221
analogous
#214982 #2A2182 #5B2182
triadic
#2A2182 #822A21 #21822A
tetradic
#2A2182 #822149 #798221 #21825B
square
#2A2182 #822149 #798221 #21825B
split-complementary
#2A2182 #825B21 #498221
monochromatic
#0A0820 #1A1551 #2A2182 #3A2DB3 #584CD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A2182#FFFFFF#000000##FFFFFF
##2A21821.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)
#003685
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2182;
/* rgb */ color: rgb(42, 33, 130);
/* oklch */ color: oklch(33.2% 0.154 278.0);
Tailwind
colors: {
  custom: {
    50: '#705ea7',
    500: '#2a2182',
    950: '#000000',
  },
}
SCSS
$custom: #2a2182;
$custom-light: #705ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2182",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 245.567,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33231,
    "c": 0.1543,
    "h": 278
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#2A2182
secondary
#ABB44A
accent
#E345D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2182

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

Preview Lab → · Contrast checker → · Palette generator →

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