#3228A2#3228A2

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

Color values

HEX#3228A2
RGBrgb(50, 40, 162)
HSLhsl(245, 60%, 40%)
HSVhsv(245, 75%, 64%)
CMYKcmyk(69.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(26.17, 42.66, -63.84)
CIE-LCHlch(26.17, 76.78, 303.75°)
OKLaboklab(38.2% 0.0214 -0.1845)
OKLCHoklch(38.2% 0.186 276.6)
XYZxyz(8.5936, 4.8036, 34.6497)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228A2 #98A228
analogous
#285BA2 #3228A2 #6F28A2
triadic
#3228A2 #A23228 #28A232
tetradic
#3228A2 #A2285B #98A228 #28A26F
square
#3228A2 #A2285B #98A228 #28A26F
split-complementary
#3228A2 #A26F28 #5BA228
monochromatic
#141040 #231C71 #3228A2 #4539CE #736ADA

Accessibility & contrast

On white

10.71
#3228A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3228A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3228A2
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3228A2#FFFFFF#000000##FFFFFF
##3228A21.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3228a2;
/* rgb */ color: rgb(50, 40, 162);
/* oklch */ color: oklch(38.2% 0.186 276.6);
Tailwind
colors: {
  custom: {
    50: '#7a64bf',
    500: '#3228a2',
    950: '#000000',
  },
}
SCSS
$custom: #3228a2;
$custom-light: #7a64bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3228a2",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 244.918,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38198,
    "c": 0.18573,
    "h": 276.6
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#3228A2
secondary
#B9C165
accent
#E444D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3228A2

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

Preview Lab → · Contrast checker → · Palette generator →

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