#3228A8#3228A8

#3228A8 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.193 H 276.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#3228A8
RGBrgb(50, 40, 168)
HSLhsl(245, 62%, 41%)
HSVhsv(245, 76%, 66%)
CMYKcmyk(70.2%, 76.2%, 0%, 34.1%)
CIE-LABlab(26.80, 44.60, -66.43)
CIE-LCHlch(26.80, 80.02, 303.87°)
OKLaboklab(38.83% 0.0201 -0.192)
OKLCHoklch(38.83% 0.193 276)
XYZxyz(9.1397, 5.0220, 37.5259)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228A8 #9EA828
analogous
#285EA8 #3228A8 #7228A8
triadic
#3228A8 #A83228 #28A832
tetradic
#3228A8 #A8285E #9EA828 #28A872
square
#3228A8 #A8285E #9EA828 #28A872
split-complementary
#3228A8 #A87228 #5EA828
monochromatic
#151045 #231C77 #3228A8 #483DD1 #776EDC

Accessibility & contrast

On white

10.48
#3228A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3228A8#FFFFFF#000000##FFFFFF
##3228A81.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3228a8;
/* rgb */ color: rgb(50, 40, 168);
/* oklch */ color: oklch(38.8% 0.193 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c64c3',
    500: '#3228a8',
    950: '#000000',
  },
}
SCSS
$custom: #3228a8;
$custom-light: #7c64c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3228a8",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 244.688,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3883,
    "c": 0.19309,
    "h": 276
  },
  "luminance": 0.05023
}

Semantic roles & 50–950 ramp

primary
#3228A8
secondary
#BCC369
accent
#E543D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3228A8

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

Preview Lab → · Contrast checker → · Palette generator →

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