#3231A7#3231A7

#3231A7 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.183 H 274.7°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#3231A7
RGBrgb(50, 49, 167)
HSLhsl(241, 55%, 42%)
HSVhsv(241, 71%, 65%)
CMYKcmyk(70.1%, 70.7%, 0%, 34.5%)
CIE-LABlab(28.55, 39.09, -62.95)
CIE-LCHlch(28.55, 74.10, 301.84°)
OKLaboklab(40.05% 0.0151 -0.1819)
OKLCHoklch(40.05% 0.183 274.7)
XYZxyz(9.3864, 5.6639, 37.1503)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3231A7 #A6A731
analogous
#316BA7 #3231A7 #6D31A7
triadic
#3231A7 #A73231 #31A732
tetradic
#3231A7 #A7316B #A6A731 #31A76D
square
#3231A7 #A7316B #A6A731 #31A76D
split-complementary
#3231A7 #A76D31 #6BA731
monochromatic
#161548 #242378 #3231A7 #4C4BCA #7B7AD8

Accessibility & contrast

On white

9.85
#3231A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3231A7
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3231A7#FFFFFF#000000##FFFFFF
##3231A71.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3231a7;
/* rgb */ color: rgb(50, 49, 167);
/* oklch */ color: oklch(40.0% 0.183 274.7);
Tailwind
colors: {
  custom: {
    50: '#7b6ac2',
    500: '#3231a7',
    950: '#000000',
  },
}
SCSS
$custom: #3231a7;
$custom-light: #7b6ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#3231a7",
  "rgb": {
    "r": 50,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 240.508,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40046,
    "c": 0.18254,
    "h": 274.7
  },
  "luminance": 0.05665
}

Semantic roles & 50–950 ramp

primary
#3231A7
secondary
#C0C173
accent
#DE4ADD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3231A7

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

Preview Lab → · Contrast checker → · Palette generator →

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