#3227A3#3227A3

#3227A3 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.188 H 276.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3227A3
RGBrgb(50, 39, 163)
HSLhsl(245, 61%, 40%)
HSVhsv(245, 76%, 64%)
CMYKcmyk(69.3%, 76.1%, 0%, 36.1%)
CIE-LABlab(26.08, 43.53, -64.60)
CIE-LCHlch(26.08, 77.90, 303.98°)
OKLaboklab(38.17% 0.0218 -0.1867)
OKLCHoklch(38.17% 0.188 276.6)
XYZxyz(8.6496, 4.7727, 35.1086)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3227A3 #98A327
analogous
#275AA3 #3227A3 #7027A3
triadic
#3227A3 #A33227 #27A332
tetradic
#3227A3 #A3275A #98A327 #27A370
square
#3227A3 #A3275A #98A327 #27A370
split-complementary
#3227A3 #A37027 #5AA327
monochromatic
#140F40 #231B72 #3227A3 #4538CF #7369DB

Accessibility & contrast

On white

10.74
#3227A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3227A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3227A3
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3227A3#FFFFFF#000000##FFFFFF
##3227A31.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3227a3;
/* rgb */ color: rgb(50, 39, 163);
/* oklch */ color: oklch(38.2% 0.188 276.6);
Tailwind
colors: {
  custom: {
    50: '#7b64bf',
    500: '#3227a3',
    950: '#000000',
  },
}
SCSS
$custom: #3227a3;
$custom-light: #7b64bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3227a3",
  "rgb": {
    "r": 50,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 245.323,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38165,
    "c": 0.18795,
    "h": 276.6
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#3227A3
secondary
#B9C164
accent
#E443D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3227A3

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

Preview Lab → · Contrast checker → · Palette generator →

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