#3228C6#3228C6

#3228C6 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.1% C 0.228 H 273.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#3228C6
RGBrgb(50, 40, 198)
HSLhsl(244, 66%, 47%)
HSVhsv(244, 80%, 78%)
CMYKcmyk(74.7%, 79.8%, 0%, 22.4%)
CIE-LABlab(30.09, 54.00, -78.83)
CIE-LCHlch(30.09, 95.55, 304.41°)
OKLaboklab(42.1% 0.0131 -0.2281)
OKLCHoklch(42.1% 0.228 273.3)
XYZxyz(12.2638, 6.2716, 53.9793)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228C6 #BCC628
analogous
#286DC6 #3228C6 #8128C6
triadic
#3228C6 #C63228 #28C632
tetradic
#3228C6 #C6286D #BCC628 #28C681
square
#3228C6 #C6286D #BCC628 #28C681
split-complementary
#3228C6 #C68128 #6DC628
monochromatic
#181360 #251E93 #3228C6 #5850DC #8983E6

Accessibility & contrast

On white

9.31
#3228C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3228C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3228C6#FFFFFF#000000##FFFFFF
##3228C61.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ECA
Deuteranopia (green-blind)
#003FC3
Tritanopia (blue-blind)
#005978
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3228c6;
/* rgb */ color: rgb(50, 40, 198);
/* oklch */ color: oklch(42.1% 0.228 273.3);
Tailwind
colors: {
  custom: {
    50: '#8366d9',
    500: '#3228c6',
    950: '#000000',
  },
}
SCSS
$custom: #3228c6;
$custom-light: #8366d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3228c6",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 198
  },
  "hsl": {
    "h": 243.797,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42101,
    "c": 0.22844,
    "h": 273.3
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#3228C6
secondary
#C9CF7B
accent
#E93EDF
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #3228C6

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

Preview Lab → · Contrast checker → · Palette generator →

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