#2271BB#2271BB

#2271BB is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 54.0% C 0.138 H 251.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2271BB
RGBrgb(34, 113, 187)
HSLhsl(209, 69%, 43%)
HSVhsv(209, 82%, 73%)
CMYKcmyk(81.8%, 39.6%, 0%, 26.7%)
CIE-LABlab(46.63, 3.41, -45.52)
CIE-LCHlch(46.63, 45.65, 274.28°)
OKLaboklab(54% -0.0447 -0.1301)
OKLCHoklch(54% 0.138 251)
XYZxyz(15.5310, 15.7363, 49.2229)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2271BB #BB6C22
analogous
#22BBB8 #2271BB #2224BB
triadic
#2271BB #BB2271 #71BB22
tetradic
#2271BB #B822BB #BB6C22 #24BB22
square
#2271BB #B822BB #BB6C22 #24BB22
split-complementary
#2271BB #BB2224 #BBB822
monochromatic
#0F3253 #195287 #2271BB #3E90DC #72AEE5

Accessibility & contrast

On white

5.06
#2271BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2271BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2271BB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2271BB#FFFFFF#000000##FFFFFF
##2271BB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D76BE
Deuteranopia (green-blind)
#3468BA
Tritanopia (blue-blind)
#00838D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2271bb;
/* rgb */ color: rgb(34, 113, 187);
/* oklch */ color: oklch(54.0% 0.138 251.0);
Tailwind
colors: {
  custom: {
    50: '#7699d0',
    500: '#2271bb',
    950: '#000000',
  },
}
SCSS
$custom: #2271bb;
$custom-light: #7699d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2271bb",
  "rgb": {
    "r": 34,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 209.02,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54003,
    "c": 0.13755,
    "h": 251
  },
  "luminance": 0.15738
}

Semantic roles & 50–950 ramp

primary
#2271BB
secondary
#CC9B6D
accent
#913CEC
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2271BB

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

Preview Lab → · Contrast checker → · Palette generator →

#2271BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva