#3231AA#3231AA

#3231AA is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.186 H 274.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#3231AA
RGBrgb(50, 49, 170)
HSLhsl(240, 55%, 43%)
HSVhsv(240, 71%, 67%)
CMYKcmyk(70.6%, 71.2%, 0%, 33.3%)
CIE-LABlab(28.84, 40.12, -64.27)
CIE-LCHlch(28.84, 75.76, 301.97°)
OKLaboklab(40.34% 0.0146 -0.1858)
OKLCHoklch(40.34% 0.186 274.5)
XYZxyz(9.6670, 5.7761, 38.6279)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3231AA #A9AA31
analogous
#316CAA #3231AA #6E31AA
triadic
#3231AA #AA3231 #31AA32
tetradic
#3231AA #AA316C #A9AA31 #31AA6E
square
#3231AA #AA316C #A9AA31 #31AA6E
split-complementary
#3231AA #AA6E31 #6CAA31
monochromatic
#16164B #24237A #3231AA #4E4DCC #7D7CD9

Accessibility & contrast

On white

9.74
#3231AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3231AA#FFFFFF#000000##FFFFFF
##3231AA1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3231aa;
/* rgb */ color: rgb(50, 49, 170);
/* oklch */ color: oklch(40.3% 0.186 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b6ac4',
    500: '#3231aa',
    950: '#000000',
  },
}
SCSS
$custom: #3231aa;
$custom-light: #7b6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#3231aa",
  "rgb": {
    "r": 50,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 240.496,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40344,
    "c": 0.18636,
    "h": 274.5
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#3231AA
secondary
#C1C275
accent
#DF49DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3231AA

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

Preview Lab → · Contrast checker → · Palette generator →

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