#3227A2#3227A2

#3227A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.187 H 276.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3227A2
RGBrgb(50, 39, 162)
HSLhsl(245, 61%, 39%)
HSVhsv(245, 76%, 64%)
CMYKcmyk(69.1%, 75.9%, 0%, 36.5%)
CIE-LABlab(25.97, 43.21, -64.17)
CIE-LCHlch(25.97, 77.36, 303.96°)
OKLaboklab(38.06% 0.022 -0.1854)
OKLCHoklch(38.06% 0.187 276.8)
XYZxyz(8.5604, 4.7370, 34.6386)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3227A2 #97A227
analogous
#275AA2 #3227A2 #7027A2
triadic
#3227A2 #A23227 #27A232
tetradic
#3227A2 #A2275A #97A227 #27A270
square
#3227A2 #A2275A #97A227 #27A270
split-complementary
#3227A2 #A27027 #5AA227
monochromatic
#140F3F #231B71 #3227A2 #4537CF #7369DB

Accessibility & contrast

On white

10.78
#3227A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3227A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3227A2
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3227A2#FFFFFF#000000##FFFFFF
##3227A21.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3227a2;
/* rgb */ color: rgb(50, 39, 162);
/* oklch */ color: oklch(38.1% 0.187 276.8);
Tailwind
colors: {
  custom: {
    50: '#7a63bf',
    500: '#3227a2',
    950: '#000000',
  },
}
SCSS
$custom: #3227a2;
$custom-light: #7a63bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3227a2",
  "rgb": {
    "r": 50,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 245.366,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3806,
    "c": 0.18672,
    "h": 276.8
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#3227A2
secondary
#B9C164
accent
#E443D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3227A2

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

Preview Lab → · Contrast checker → · Palette generator →

#3227A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva