#3227AB#3227AB

#3227AB is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.198 H 275.8°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#3227AB
RGBrgb(50, 39, 171)
HSLhsl(245, 63%, 41%)
HSVhsv(245, 77%, 67%)
CMYKcmyk(70.8%, 77.2%, 0%, 32.9%)
CIE-LABlab(26.93, 46.10, -68.02)
CIE-LCHlch(26.93, 82.17, 304.12°)
OKLaboklab(39.02% 0.0199 -0.1967)
OKLCHoklch(39.02% 0.198 275.8)
XYZxyz(9.3892, 5.0685, 39.0037)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3227AB #A0AB27
analogous
#275EAB #3227AB #7427AB
triadic
#3227AB #AB3227 #27AB32
tetradic
#3227AB #AB275E #A0AB27 #27AB74
square
#3227AB #AB275E #A0AB27 #27AB74
split-complementary
#3227AB #AB7427 #5EAB27
monochromatic
#151047 #231C79 #3227AB #493DD3 #786EDE

Accessibility & contrast

On white

10.43
#3227AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3227AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3227AB
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3227AB#FFFFFF#000000##FFFFFF
##3227AB1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3227ab;
/* rgb */ color: rgb(50, 39, 171);
/* oklch */ color: oklch(39.0% 0.198 275.8);
Tailwind
colors: {
  custom: {
    50: '#7d64c5',
    500: '#3227ab',
    950: '#000000',
  },
}
SCSS
$custom: #3227ab;
$custom-light: #7d64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3227ab",
  "rgb": {
    "r": 50,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 245,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39018,
    "c": 0.19767,
    "h": 275.8
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#3227AB
secondary
#BDC569
accent
#E642D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3227AB

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

Preview Lab → · Contrast checker → · Palette generator →

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