#2A32AB#2A32AB

#2A32AB is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.189 H 271.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#2A32AB
RGBrgb(42, 50, 171)
HSLhsl(236, 61%, 42%)
HSVhsv(236, 75%, 67%)
CMYKcmyk(75.4%, 70.8%, 0%, 32.9%)
CIE-LABlab(28.68, 39.01, -65.16)
CIE-LCHlch(28.68, 75.95, 300.91°)
OKLaboklab(40.13% 0.0046 -0.1886)
OKLCHoklch(40.13% 0.189 271.4)
XYZxyz(9.4436, 5.7127, 39.1251)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A32AB #ABA32A
analogous
#2A73AB #2A32AB #632AAB
triadic
#2A32AB #AB2A32 #32AB2A
tetradic
#2A32AB #AB2A73 #ABA32A #2AAB63
square
#2A32AB #AB2A73 #ABA32A #2AAB63
split-complementary
#2A32AB #AB632A #73AB2A
monochromatic
#121549 #1E247A #2A32AB #424BD1 #7379DD

Accessibility & contrast

On white

9.80
#2A32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A32AB
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A32AB#FFFFFF#000000##FFFFFF
##2A32AB1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a32ab;
/* rgb */ color: rgb(42, 50, 171);
/* oklch */ color: oklch(40.1% 0.189 271.4);
Tailwind
colors: {
  custom: {
    50: '#796bc5',
    500: '#2a32ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a32ab;
$custom-light: #796bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a32ab",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 236.279,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40127,
    "c": 0.18863,
    "h": 271.4
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#2A32AB
secondary
#C4BF6D
accent
#DA44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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