#3231AB#3231AB

#3231AB is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.188 H 274.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#3231AB
RGBrgb(50, 49, 171)
HSLhsl(240, 55%, 43%)
HSVhsv(240, 71%, 67%)
CMYKcmyk(70.8%, 71.3%, 0%, 32.9%)
CIE-LABlab(28.94, 40.45, -64.71)
CIE-LCHlch(28.94, 76.32, 302.01°)
OKLaboklab(40.44% 0.0145 -0.1871)
OKLCHoklch(40.44% 0.188 274.4)
XYZxyz(9.7620, 5.8141, 39.1280)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3231AB #AAAB31
analogous
#316DAB #3231AB #6F31AB
triadic
#3231AB #AB3231 #31AB32
tetradic
#3231AB #AB316D #AAAB31 #31AB6F
square
#3231AB #AB316D #AAAB31 #31AB6F
split-complementary
#3231AB #AB6F31 #6DAB31
monochromatic
#16164C #24237B #3231AB #4E4DCC #7D7DDA

Accessibility & contrast

On white

9.71
#3231AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3231AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3231AB
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3231AB#FFFFFF#000000##FFFFFF
##3231AB1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3231ab;
/* rgb */ color: rgb(50, 49, 171);
/* oklch */ color: oklch(40.4% 0.188 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c6ac5',
    500: '#3231ab',
    950: '#000000',
  },
}
SCSS
$custom: #3231ab;
$custom-light: #7c6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#3231ab",
  "rgb": {
    "r": 50,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 240.492,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40444,
    "c": 0.18763,
    "h": 274.4
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#3231AB
secondary
#C2C275
accent
#DF49DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3231AB

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

Preview Lab → · Contrast checker → · Palette generator →

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