#2A32B2#2A32B2

#2A32B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.197 H 271.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2A32B2
RGBrgb(42, 50, 178)
HSLhsl(236, 62%, 43%)
HSVhsv(236, 76%, 70%)
CMYKcmyk(76.4%, 71.9%, 0%, 30.2%)
CIE-LABlab(29.38, 41.45, -68.19)
CIE-LCHlch(29.38, 79.80, 301.29°)
OKLaboklab(40.84% 0.0037 -0.1974)
OKLCHoklch(40.84% 0.197 271.1)
XYZxyz(10.1286, 5.9867, 42.7326)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A32B2 #B2AA2A
analogous
#2A76B2 #2A32B2 #662AB2
triadic
#2A32B2 #B22A32 #32B22A
tetradic
#2A32B2 #B22A76 #B2AA2A #2AB266
square
#2A32B2 #B22A76 #B2AA2A #2AB266
split-complementary
#2A32B2 #B2662A #76B22A
monochromatic
#13164F #1E2480 #2A32B2 #464ED3 #777DDF

Accessibility & contrast

On white

9.56
#2A32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A32B2
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A32B2#FFFFFF#000000##FFFFFF
##2A32B21.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a32b2;
/* rgb */ color: rgb(42, 50, 178);
/* oklch */ color: oklch(40.8% 0.197 271.1);
Tailwind
colors: {
  custom: {
    50: '#7a6bca',
    500: '#2a32b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a32b2;
$custom-light: #7a6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a32b2",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 236.471,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40843,
    "c": 0.19745,
    "h": 271.1
  },
  "luminance": 0.05988
}

Semantic roles & 50–950 ramp

primary
#2A32B2
secondary
#C7C271
accent
#DB43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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