#2A32AA#2A32AA

#2A32AA is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.187 H 271.5°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2A32AA
RGBrgb(42, 50, 170)
HSLhsl(236, 60%, 42%)
HSVhsv(236, 75%, 67%)
CMYKcmyk(75.3%, 70.6%, 0%, 33.3%)
CIE-LABlab(28.58, 38.66, -64.72)
CIE-LCHlch(28.58, 75.39, 300.85°)
OKLaboklab(40.03% 0.0048 -0.1873)
OKLCHoklch(40.03% 0.187 271.5)
XYZxyz(9.3487, 5.6747, 38.6251)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A32AA #AAA22A
analogous
#2A72AA #2A32AA #622AAA
triadic
#2A32AA #AA2A32 #32AA2A
tetradic
#2A32AA #AA2A72 #AAA22A #2AAA62
square
#2A32AA #AA2A72 #AAA22A #2AAA62
split-complementary
#2A32AA #AA622A #72AA2A
monochromatic
#121548 #1E2479 #2A32AA #414AD0 #7279DC

Accessibility & contrast

On white

9.84
#2A32AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A32AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A32AA
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A32AA#FFFFFF#000000##FFFFFF
##2A32AA1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a32aa;
/* rgb */ color: rgb(42, 50, 170);
/* oklch */ color: oklch(40.0% 0.187 271.5);
Tailwind
colors: {
  custom: {
    50: '#786ac4',
    500: '#2a32aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a32aa;
$custom-light: #786ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a32aa",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 170
  },
  "hsl": {
    "h": 236.25,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40026,
    "c": 0.18736,
    "h": 271.5
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#2A32AA
secondary
#C3BE6C
accent
#DA44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A32AA

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

Preview Lab → · Contrast checker → · Palette generator →

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