#3231A6#3231A6

#3231A6 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.181 H 274.8°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#3231A6
RGBrgb(50, 49, 166)
HSLhsl(241, 54%, 42%)
HSVhsv(241, 70%, 65%)
CMYKcmyk(69.9%, 70.5%, 0%, 34.9%)
CIE-LABlab(28.45, 38.75, -62.50)
CIE-LCHlch(28.45, 73.54, 301.80°)
OKLaboklab(39.95% 0.0152 -0.1806)
OKLCHoklch(39.95% 0.181 274.8)
XYZxyz(9.2944, 5.6270, 36.6653)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3231A6 #A5A631
analogous
#316AA6 #3231A6 #6D31A6
triadic
#3231A6 #A63231 #31A632
tetradic
#3231A6 #A6316A #A5A631 #31A66D
square
#3231A6 #A6316A #A5A631 #31A66D
split-complementary
#3231A6 #A66D31 #6AA631
monochromatic
#161547 #242377 #3231A6 #4C4ACA #7B7AD8

Accessibility & contrast

On white

9.88
#3231A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3231A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3231A6
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3231A6#FFFFFF#000000##FFFFFF
##3231A61.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3231a6;
/* rgb */ color: rgb(50, 49, 166);
/* oklch */ color: oklch(39.9% 0.181 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a6ac2',
    500: '#3231a6',
    950: '#000000',
  },
}
SCSS
$custom: #3231a6;
$custom-light: #7a6ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#3231a6",
  "rgb": {
    "r": 50,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 240.513,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39947,
    "c": 0.18126,
    "h": 274.8
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#3231A6
secondary
#BFC073
accent
#DE4ADD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3231A6

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

Preview Lab → · Contrast checker → · Palette generator →

#3231A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva