#3271B7#3271B7

#3271B7 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.127 H 253.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#3271B7
RGBrgb(50, 113, 183)
HSLhsl(212, 57%, 46%)
HSVhsv(212, 73%, 72%)
CMYKcmyk(72.7%, 38.3%, 0%, 28.2%)
CIE-LABlab(46.85, 3.81, -42.82)
CIE-LCHlch(46.85, 42.99, 275.08°)
OKLaboklab(54.23% -0.0367 -0.122)
OKLCHoklch(54.23% 0.127 253.2)
XYZxyz(15.7646, 15.9055, 47.0298)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3271B7 #B77832
analogous
#32B3B7 #3271B7 #3532B7
triadic
#3271B7 #B73271 #71B732
tetradic
#3271B7 #B732B3 #B77832 #32B735
square
#3271B7 #B732B3 #B77832 #32B735
split-complementary
#3271B7 #B73532 #B3B732
monochromatic
#183657 #255387 #3271B7 #5690D1 #86AFDE

Accessibility & contrast

On white

5.02
#3271B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#3271B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3271B7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3271B7#FFFFFF#000000##FFFFFF
##3271B71.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5176BA
Deuteranopia (green-blind)
#3C69B6
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3271b7;
/* rgb */ color: rgb(50, 113, 183);
/* oklch */ color: oklch(54.2% 0.127 253.2);
Tailwind
colors: {
  custom: {
    50: '#7b99cd',
    500: '#3271b7',
    950: '#000000',
  },
}
SCSS
$custom: #3271b7;
$custom-light: #7b99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3271b7",
  "rgb": {
    "r": 50,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 211.579,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54232,
    "c": 0.12741,
    "h": 253.2
  },
  "luminance": 0.15907
}

Semantic roles & 50–950 ramp

primary
#3271B7
secondary
#C7A47D
accent
#9847E0
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3271B7

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

Preview Lab → · Contrast checker → · Palette generator →

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