#3231B8#3231B8

#3231B8 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.204 H 273.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#3231B8
RGBrgb(50, 49, 184)
HSLhsl(240, 58%, 46%)
HSVhsv(240, 73%, 72%)
CMYKcmyk(72.8%, 73.4%, 0%, 27.8%)
CIE-LABlab(30.24, 44.81, -70.32)
CIE-LCHlch(30.24, 83.38, 302.51°)
OKLaboklab(41.77% 0.0123 -0.2034)
OKLCHoklch(41.77% 0.204 273.5)
XYZxyz(11.0625, 6.3343, 45.9777)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3231B8 #B7B831
analogous
#3174B8 #3231B8 #7531B8
triadic
#3231B8 #B83231 #31B832
tetradic
#3231B8 #B83174 #B7B831 #31B875
square
#3231B8 #B83174 #B7B831 #31B875
split-complementary
#3231B8 #B87531 #74B831
monochromatic
#181757 #252488 #3231B8 #5655D2 #8685DE

Accessibility & contrast

On white

9.26
#3231B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3231B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3231B8#FFFFFF#000000##FFFFFF
##3231B81.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0041B6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3231b8;
/* rgb */ color: rgb(50, 49, 184);
/* oklch */ color: oklch(41.8% 0.204 273.5);
Tailwind
colors: {
  custom: {
    50: '#7f6bcf',
    500: '#3231b8',
    950: '#000000',
  },
}
SCSS
$custom: #3231b8;
$custom-light: #7f6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3231b8",
  "rgb": {
    "r": 50,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 240.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41765,
    "c": 0.2038,
    "h": 273.5
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#3231B8
secondary
#C7C87D
accent
#E147E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3231B8

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

Preview Lab → · Contrast checker → · Palette generator →

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