#2271AF#2271AF

#2271AF is a mid, vivid cyan. Relative luminance 0.152; OKLCH L 53.3% C 0.122 H 247.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2271AF
RGBrgb(34, 113, 175)
HSLhsl(206, 67%, 41%)
HSVhsv(206, 81%, 69%)
CMYKcmyk(80.6%, 35.4%, 0%, 31.4%)
CIE-LABlab(45.97, -1.17, -39.60)
CIE-LCHlch(45.97, 39.61, 268.31°)
OKLaboklab(53.27% -0.0479 -0.1127)
OKLCHoklch(53.27% 0.122 247)
XYZxyz(14.2997, 15.2437, 42.7378)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2271AF #AF6022
analogous
#22AFA6 #2271AF #222AAF
triadic
#2271AF #AF2271 #71AF22
tetradic
#2271AF #A622AF #AF6022 #2AAF22
square
#2271AF #A622AF #AF6022 #2AAF22
split-complementary
#2271AF #AF222A #AFA622
monochromatic
#0E2F49 #18507C #2271AF #3691D8 #69ADE2

Accessibility & contrast

On white

5.19
#2271AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2271AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2271AF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2271AF#FFFFFF#000000##FFFFFF
##2271AF1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5474B2
Deuteranopia (green-blind)
#3F67AE
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2271af;
/* rgb */ color: rgb(34, 113, 175);
/* oklch */ color: oklch(53.3% 0.122 247.0);
Tailwind
colors: {
  custom: {
    50: '#7499c7',
    500: '#2271af',
    950: '#000000',
  },
}
SCSS
$custom: #2271af;
$custom-light: #7499c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2271af",
  "rgb": {
    "r": 34,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 206.383,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5327,
    "c": 0.12247,
    "h": 247
  },
  "luminance": 0.15245
}

Semantic roles & 50–950 ramp

primary
#2271AF
secondary
#C89065
accent
#893DEA
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2271AF

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

Preview Lab → · Contrast checker → · Palette generator →

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