#3271B2#3271B2

#3271B2 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.121 H 251.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#3271B2
RGBrgb(50, 113, 178)
HSLhsl(210, 56%, 45%)
HSVhsv(210, 72%, 70%)
CMYKcmyk(71.9%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.58, 1.97, -40.34)
CIE-LCHlch(46.58, 40.39, 272.80°)
OKLaboklab(53.93% -0.038 -0.1147)
OKLCHoklch(53.93% 0.121 251.7)
XYZxyz(15.2534, 15.7010, 44.3376)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3271B2 #B27332
analogous
#32B1B2 #3271B2 #3332B2
triadic
#3271B2 #B23271 #71B232
tetradic
#3271B2 #B232B1 #B27332 #32B233
square
#3271B2 #B232B1 #B27332 #32B233
split-complementary
#3271B2 #B23332 #B1B232
monochromatic
#173452 #255382 #3271B2 #5390CF #82AEDC

Accessibility & contrast

On white

5.07
#3271B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#3271B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3271B2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3271B2#FFFFFF#000000##FFFFFF
##3271B21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#4169B1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3271b2;
/* rgb */ color: rgb(50, 113, 178);
/* oklch */ color: oklch(53.9% 0.121 251.7);
Tailwind
colors: {
  custom: {
    50: '#7a99c9',
    500: '#3271b2',
    950: '#000000',
  },
}
SCSS
$custom: #3271b2;
$custom-light: #7a99c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3271b2",
  "rgb": {
    "r": 50,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 210.469,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53932,
    "c": 0.12088,
    "h": 251.7
  },
  "luminance": 0.15703
}

Semantic roles & 50–950 ramp

primary
#3271B2
secondary
#C5A07B
accent
#9548DF
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3271B2

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

Preview Lab → · Contrast checker → · Palette generator →

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