#3228AA#3228AA

#3228AA is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.196 H 275.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#3228AA
RGBrgb(50, 40, 170)
HSLhsl(245, 62%, 41%)
HSVhsv(245, 76%, 67%)
CMYKcmyk(70.6%, 76.5%, 0%, 33.3%)
CIE-LABlab(27.01, 45.24, -67.29)
CIE-LCHlch(27.01, 81.08, 303.91°)
OKLaboklab(39.04% 0.0197 -0.1945)
OKLCHoklch(39.04% 0.196 275.8)
XYZxyz(9.3275, 5.0971, 38.5147)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228AA #A0AA28
analogous
#285FAA #3228AA #7328AA
triadic
#3228AA #AA3228 #28AA32
tetradic
#3228AA #AA285F #A0AA28 #28AA73
square
#3228AA #AA285F #A0AA28 #28AA73
split-complementary
#3228AA #AA7328 #5FAA28
monochromatic
#151147 #231C78 #3228AA #493ED2 #786FDD

Accessibility & contrast

On white

10.40
#3228AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3228AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3228AA#FFFFFF#000000##FFFFFF
##3228AA1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3228aa;
/* rgb */ color: rgb(50, 40, 170);
/* oklch */ color: oklch(39.0% 0.196 275.8);
Tailwind
colors: {
  custom: {
    50: '#7c64c5',
    500: '#3228aa',
    950: '#000000',
  },
}
SCSS
$custom: #3228aa;
$custom-light: #7c64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3228aa",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 244.615,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39043,
    "c": 0.19552,
    "h": 275.8
  },
  "luminance": 0.05098
}

Semantic roles & 50–950 ramp

primary
#3228AA
secondary
#BDC46A
accent
#E543D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3228AA

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

Preview Lab → · Contrast checker → · Palette generator →

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