#2A2184#2A2184

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

Color values

HEX#2A2184
RGBrgb(42, 33, 132)
HSLhsl(245, 60%, 32%)
HSVhsv(245, 75%, 52%)
CMYKcmyk(68.2%, 75%, 0%, 48.2%)
CIE-LABlab(21.00, 35.79, -53.84)
CIE-LCHlch(21.00, 64.65, 303.62°)
OKLaboklab(33.44% 0.0211 -0.1555)
OKLCHoklch(33.44% 0.157 277.7)
XYZxyz(5.6622, 3.2454, 22.1534)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2184 #7B8421
analogous
#214984 #2A2184 #5C2184
triadic
#2A2184 #842A21 #21842A
tetradic
#2A2184 #842149 #7B8421 #21845C
square
#2A2184 #842149 #7B8421 #21845C
split-complementary
#2A2184 #845C21 #498421
monochromatic
#0B0922 #1A1553 #2A2184 #3A2DB5 #594DD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A2184#FFFFFF#000000##FFFFFF
##2A21841.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)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2184;
/* rgb */ color: rgb(42, 33, 132);
/* oklch */ color: oklch(33.4% 0.157 277.7);
Tailwind
colors: {
  custom: {
    50: '#715ea9',
    500: '#2a2184',
    950: '#000000',
  },
}
SCSS
$custom: #2a2184;
$custom-light: #715ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2184",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 245.455,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.15691,
    "h": 277.7
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#2A2184
secondary
#ACB64B
accent
#E345D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2184

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

Preview Lab → · Contrast checker → · Palette generator →

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