#3228A7#3228A7

#3228A7 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.192 H 276.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#3228A7
RGBrgb(50, 40, 167)
HSLhsl(245, 61%, 41%)
HSVhsv(245, 76%, 65%)
CMYKcmyk(70.1%, 76%, 0%, 34.5%)
CIE-LABlab(26.69, 44.28, -66.01)
CIE-LCHlch(26.69, 79.48, 303.85°)
OKLaboklab(38.72% 0.0203 -0.1908)
OKLCHoklch(38.72% 0.192 276.1)
XYZxyz(9.0469, 4.9849, 37.0371)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228A7 #9DA728
analogous
#285EA7 #3228A7 #7128A7
triadic
#3228A7 #A73228 #28A732
tetradic
#3228A7 #A7285E #9DA728 #28A771
square
#3228A7 #A7285E #9DA728 #28A771
split-complementary
#3228A7 #A77128 #5EA728
monochromatic
#141044 #231C76 #3228A7 #483CD0 #766DDC

Accessibility & contrast

On white

10.51
#3228A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3228A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3228A7
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3228A7#FFFFFF#000000##FFFFFF
##3228A71.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3228a7;
/* rgb */ color: rgb(50, 40, 167);
/* oklch */ color: oklch(38.7% 0.192 276.1);
Tailwind
colors: {
  custom: {
    50: '#7c64c2',
    500: '#3228a7',
    950: '#000000',
  },
}
SCSS
$custom: #3228a7;
$custom-light: #7c64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3228a7",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 244.724,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38724,
    "c": 0.19187,
    "h": 276.1
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#3228A7
secondary
#BCC368
accent
#E443D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3228A7

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

Preview Lab → · Contrast checker → · Palette generator →

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