#3228AD#3228AD

#3228AD is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.4% C 0.199 H 275.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#3228AD
RGBrgb(50, 40, 173)
HSLhsl(245, 62%, 42%)
HSVhsv(245, 77%, 68%)
CMYKcmyk(71.1%, 76.9%, 0%, 32.2%)
CIE-LABlab(27.33, 46.20, -68.56)
CIE-LCHlch(27.33, 82.68, 303.97°)
OKLaboklab(39.36% 0.019 -0.1982)
OKLCHoklch(39.36% 0.199 275.5)
XYZxyz(9.6145, 5.2119, 40.0264)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3228AD #A3AD28
analogous
#2861AD #3228AD #7528AD
triadic
#3228AD #AD3228 #28AD32
tetradic
#3228AD #AD2861 #A3AD28 #28AD75
square
#3228AD #AD2861 #A3AD28 #28AD75
split-complementary
#3228AD #AD7528 #61AD28
monochromatic
#15114A #241D7B #3228AD #4B3FD3 #7971DE

Accessibility & contrast

On white

10.28
#3228AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3228AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3228AD#FFFFFF#000000##FFFFFF
##3228AD1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B1
Deuteranopia (green-blind)
#003AAB
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3228ad;
/* rgb */ color: rgb(50, 40, 173);
/* oklch */ color: oklch(39.4% 0.199 275.5);
Tailwind
colors: {
  custom: {
    50: '#7d65c7',
    500: '#3228ad',
    950: '#000000',
  },
}
SCSS
$custom: #3228ad;
$custom-light: #7d65c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3228ad",
  "rgb": {
    "r": 50,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 244.511,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39364,
    "c": 0.19915,
    "h": 275.5
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#3228AD
secondary
#BFC56C
accent
#E642D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3228AD

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

Preview Lab → · Contrast checker → · Palette generator →

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