#3228A4#3228A4

#3228A4 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.188 H 276.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#3228A4
RGBrgb(50, 40, 164)
HSLhsl(245, 61%, 40%)
HSVhsv(245, 76%, 64%)
CMYKcmyk(69.5%, 75.6%, 0%, 35.7%)
CIE-LABlab(26.38, 43.31, -64.71)
CIE-LCHlch(26.38, 77.87, 303.79°)
OKLaboklab(38.41% 0.021 -0.187)
OKLCHoklch(38.41% 0.188 276.4)
XYZxyz(8.7728, 4.8752, 35.5935)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228A4 #9AA428
analogous
#285CA4 #3228A4 #7028A4
triadic
#3228A4 #A43228 #28A432
tetradic
#3228A4 #A4285C #9AA428 #28A470
square
#3228A4 #A4285C #9AA428 #28A470
split-complementary
#3228A4 #A47028 #5CA428
monochromatic
#141042 #231C73 #3228A4 #463ACF #746BDB

Accessibility & contrast

On white

10.63
#3228A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3228A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3228A4#FFFFFF#000000##FFFFFF
##3228A41.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3228a4;
/* rgb */ color: rgb(50, 40, 164);
/* oklch */ color: oklch(38.4% 0.188 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b64c0',
    500: '#3228a4',
    950: '#000000',
  },
}
SCSS
$custom: #3228a4;
$custom-light: #7b64c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3228a4",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 244.839,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.38408,
    "c": 0.18819,
    "h": 276.4
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#3228A4
secondary
#BAC166
accent
#E444D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3228A4

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

Preview Lab → · Contrast checker → · Palette generator →

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