#3228AB#3228AB

#3228AB is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.1% C 0.197 H 275.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#3228AB
RGBrgb(50, 40, 171)
HSLhsl(245, 62%, 41%)
HSVhsv(245, 77%, 67%)
CMYKcmyk(70.8%, 76.6%, 0%, 32.9%)
CIE-LABlab(27.12, 45.56, -67.72)
CIE-LCHlch(27.12, 81.62, 303.93°)
OKLaboklab(39.15% 0.0194 -0.1958)
OKLCHoklch(39.15% 0.197 275.7)
XYZxyz(9.4225, 5.1351, 39.0148)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228AB #A1AB28
analogous
#2860AB #3228AB #7428AB
triadic
#3228AB #AB3228 #28AB32
tetradic
#3228AB #AB2860 #A1AB28 #28AB74
square
#3228AB #AB2860 #A1AB28 #28AB74
split-complementary
#3228AB #AB7428 #60AB28
monochromatic
#151148 #231C79 #3228AB #4A3ED2 #7870DE

Accessibility & contrast

On white

10.36
#3228AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3228AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3228AB#FFFFFF#000000##FFFFFF
##3228AB1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3228ab;
/* rgb */ color: rgb(50, 40, 171);
/* oklch */ color: oklch(39.1% 0.197 275.7);
Tailwind
colors: {
  custom: {
    50: '#7c65c5',
    500: '#3228ab',
    950: '#000000',
  },
}
SCSS
$custom: #3228ab;
$custom-light: #7c65c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3228ab",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 244.58,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.3915,
    "c": 0.19673,
    "h": 275.7
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3228AB

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

Preview Lab → · Contrast checker → · Palette generator →

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