#2A32B1#2A32B1

#2A32B1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.196 H 271.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2A32B1
RGBrgb(42, 50, 177)
HSLhsl(236, 62%, 43%)
HSVhsv(236, 76%, 69%)
CMYKcmyk(76.3%, 71.8%, 0%, 30.6%)
CIE-LABlab(29.28, 41.11, -67.76)
CIE-LCHlch(29.28, 79.25, 301.24°)
OKLaboklab(40.74% 0.0039 -0.1961)
OKLCHoklch(40.74% 0.196 271.1)
XYZxyz(10.0286, 5.9467, 42.2057)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A32B1 #B1A92A
analogous
#2A76B1 #2A32B1 #652AB1
triadic
#2A32B1 #B12A32 #32B12A
tetradic
#2A32B1 #B12A76 #B1A92A #2AB165
square
#2A32B1 #B12A76 #B1A92A #2AB165
split-complementary
#2A32B1 #B1652A #76B12A
monochromatic
#13164E #1E2480 #2A32B1 #454ED3 #777DDF

Accessibility & contrast

On white

9.59
#2A32B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A32B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A32B1
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A32B1#FFFFFF#000000##FFFFFF
##2A32B11.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a32b1;
/* rgb */ color: rgb(42, 50, 177);
/* oklch */ color: oklch(40.7% 0.196 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a6bca',
    500: '#2a32b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a32b1;
$custom-light: #7a6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a32b1",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 236.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4074,
    "c": 0.19619,
    "h": 271.1
  },
  "luminance": 0.05948
}

Semantic roles & 50–950 ramp

primary
#2A32B1
secondary
#C6C170
accent
#DB43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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