#3227A7#3227A7

#3227A7 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.6% C 0.193 H 276.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#3227A7
RGBrgb(50, 39, 167)
HSLhsl(245, 62%, 40%)
HSVhsv(245, 77%, 65%)
CMYKcmyk(70.1%, 76.6%, 0%, 34.5%)
CIE-LABlab(26.50, 44.82, -66.32)
CIE-LCHlch(26.50, 80.05, 304.05°)
OKLaboklab(38.59% 0.0209 -0.1917)
OKLCHoklch(38.59% 0.193 276.2)
XYZxyz(9.0137, 4.9183, 37.0260)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3227A7 #9CA727
analogous
#275CA7 #3227A7 #7227A7
triadic
#3227A7 #A73227 #27A732
tetradic
#3227A7 #A7275C #9CA727 #27A772
square
#3227A7 #A7275C #9CA727 #27A772
split-complementary
#3227A7 #A77227 #5CA727
monochromatic
#141044 #231B75 #3227A7 #473AD1 #756CDD

Accessibility & contrast

On white

10.59
#3227A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3227A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3227A7
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3227A7#FFFFFF#000000##FFFFFF
##3227A71.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3227a7;
/* rgb */ color: rgb(50, 39, 167);
/* oklch */ color: oklch(38.6% 0.193 276.2);
Tailwind
colors: {
  custom: {
    50: '#7c64c2',
    500: '#3227a7',
    950: '#000000',
  },
}
SCSS
$custom: #3227a7;
$custom-light: #7c64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3227a7",
  "rgb": {
    "r": 50,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 245.156,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.19283,
    "h": 276.2
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

primary
#3227A7
secondary
#BBC367
accent
#E543D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #3227A7

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

Preview Lab → · Contrast checker → · Palette generator →

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