#3271B4#3271B4

#3271B4 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.123 H 252.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#3271B4
RGBrgb(50, 113, 180)
HSLhsl(211, 57%, 45%)
HSVhsv(211, 72%, 71%)
CMYKcmyk(72.2%, 37.2%, 0%, 29.4%)
CIE-LABlab(46.69, 2.71, -41.34)
CIE-LCHlch(46.69, 41.43, 273.75°)
OKLaboklab(54.05% -0.0375 -0.1176)
OKLCHoklch(54.05% 0.123 252.3)
XYZxyz(15.4557, 15.7820, 45.4028)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3271B4 #B47532
analogous
#32B2B4 #3271B4 #3432B4
triadic
#3271B4 #B43271 #71B432
tetradic
#3271B4 #B432B2 #B47532 #32B434
square
#3271B4 #B432B2 #B47532 #32B434
split-complementary
#3271B4 #B43432 #B2B432
monochromatic
#173554 #255384 #3271B4 #5490CF #84AFDD

Accessibility & contrast

On white

5.05
#3271B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#3271B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3271B4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3271B4#FFFFFF#000000##FFFFFF
##3271B41.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5275B7
Deuteranopia (green-blind)
#3F69B3
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3271b4;
/* rgb */ color: rgb(50, 113, 180);
/* oklch */ color: oklch(54.1% 0.123 252.3);
Tailwind
colors: {
  custom: {
    50: '#7a99cb',
    500: '#3271b4',
    950: '#000000',
  },
}
SCSS
$custom: #3271b4;
$custom-light: #7a99cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3271b4",
  "rgb": {
    "r": 50,
    "g": 113,
    "b": 180
  },
  "hsl": {
    "h": 210.923,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54051,
    "c": 0.12348,
    "h": 252.3
  },
  "luminance": 0.15784
}

Semantic roles & 50–950 ramp

primary
#3271B4
secondary
#C6A27C
accent
#9648E0
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3271B4

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

Preview Lab → · Contrast checker → · Palette generator →

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