#3227A5#3227A5

#3227A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.4% C 0.190 H 276.4°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3227A5
RGBrgb(50, 39, 165)
HSLhsl(245, 62%, 40%)
HSVhsv(245, 76%, 65%)
CMYKcmyk(69.7%, 76.4%, 0%, 35.3%)
CIE-LABlab(26.29, 44.18, -65.46)
CIE-LCHlch(26.29, 78.97, 304.01°)
OKLaboklab(38.38% 0.0213 -0.1892)
OKLCHoklch(38.38% 0.19 276.4)
XYZxyz(8.8302, 4.8450, 36.0598)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3227A5 #9AA527
analogous
#275BA5 #3227A5 #7127A5
triadic
#3227A5 #A53227 #27A532
tetradic
#3227A5 #A5275B #9AA527 #27A571
square
#3227A5 #A5275B #9AA527 #27A571
split-complementary
#3227A5 #A57127 #5BA527
monochromatic
#141042 #231B74 #3227A5 #4639D0 #746ADC

Accessibility & contrast

On white

10.66
#3227A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3227A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3227A5
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3227A5#FFFFFF#000000##FFFFFF
##3227A51.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3227a5;
/* rgb */ color: rgb(50, 39, 165);
/* oklch */ color: oklch(38.4% 0.190 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b64c1',
    500: '#3227a5',
    950: '#000000',
  },
}
SCSS
$custom: #3227a5;
$custom-light: #7b64c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3227a5",
  "rgb": {
    "r": 50,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 245.238,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.38377,
    "c": 0.1904,
    "h": 276.4
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#3227A5
secondary
#BAC266
accent
#E543D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3227A5

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

Preview Lab → · Contrast checker → · Palette generator →

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