#3271A4#3271A4

#3271A4 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.1% C 0.103 H 245.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#3271A4
RGBrgb(50, 113, 164)
HSLhsl(207, 53%, 42%)
HSVhsv(207, 70%, 64%)
CMYKcmyk(69.5%, 31.1%, 0%, 35.7%)
CIE-LABlab(45.86, -3.10, -33.29)
CIE-LCHlch(45.86, 33.44, 264.68°)
OKLaboklab(53.13% -0.042 -0.0942)
OKLCHoklch(53.13% 0.103 245.9)
XYZxyz(13.9188, 15.1672, 37.3088)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3271A4 #A46532
analogous
#32A49E #3271A4 #3238A4
triadic
#3271A4 #A43271 #71A432
tetradic
#3271A4 #9E32A4 #A46532 #38A432
square
#3271A4 #9E32A4 #A46532 #38A432
split-complementary
#3271A4 #A43238 #A49E32
monochromatic
#153046 #245175 #3271A4 #4B90C8 #7AADD6

Accessibility & contrast

On white

5.21
#3271A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#3271A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3271A4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3271A4#FFFFFF#000000##FFFFFF
##3271A41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A73A6
Deuteranopia (green-blind)
#4A68A3
Tritanopia (blue-blind)
#007D83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #3271a4;
/* rgb */ color: rgb(50, 113, 164);
/* oklch */ color: oklch(53.1% 0.103 245.9);
Tailwind
colors: {
  custom: {
    50: '#7799bf',
    500: '#3271a4',
    950: '#000000',
  },
}
SCSS
$custom: #3271a4;
$custom-light: #7799bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3271a4",
  "rgb": {
    "r": 50,
    "g": 113,
    "b": 164
  },
  "hsl": {
    "h": 206.842,
    "s": 53.271,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53134,
    "c": 0.10312,
    "h": 245.9
  },
  "luminance": 0.15169
}

Semantic roles & 50–950 ramp

primary
#3271A4
secondary
#BF9573
accent
#8C4BDD
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #3271A4

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

Preview Lab → · Contrast checker → · Palette generator →

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