#2271A5#2271A5

#2271A5 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.7% C 0.110 H 242.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2271A5
RGBrgb(34, 113, 165)
HSLhsl(204, 66%, 39%)
HSVhsv(204, 79%, 65%)
CMYKcmyk(79.4%, 31.5%, 0%, 35.3%)
CIE-LABlab(45.45, -4.94, -34.56)
CIE-LCHlch(45.45, 34.91, 261.87°)
OKLaboklab(52.69% -0.0509 -0.098)
OKLCHoklch(52.69% 0.11 242.6)
XYZxyz(13.3537, 14.8653, 37.7555)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2271A5 #A55622
analogous
#22A598 #2271A5 #2230A5
triadic
#2271A5 #A52271 #71A522
tetradic
#2271A5 #9822A5 #A55622 #30A522
square
#2271A5 #9822A5 #A55622 #30A522
split-complementary
#2271A5 #A52230 #A59822
monochromatic
#0D2B40 #184E72 #2271A5 #3093D4 #63ADDF

Accessibility & contrast

On white

5.29
#2271A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2271A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2271A5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2271A5#FFFFFF#000000##FFFFFF
##2271A51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5972A7
Deuteranopia (green-blind)
#4766A4
Tritanopia (blue-blind)
#007E83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2271a5;
/* rgb */ color: rgb(34, 113, 165);
/* oklch */ color: oklch(52.7% 0.110 242.6);
Tailwind
colors: {
  custom: {
    50: '#7299c0',
    500: '#2271a5',
    950: '#000000',
  },
}
SCSS
$custom: #2271a5;
$custom-light: #7299c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2271a5",
  "rgb": {
    "r": 34,
    "g": 113,
    "b": 165
  },
  "hsl": {
    "h": 203.817,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.11043,
    "h": 242.6
  },
  "luminance": 0.14867
}

Semantic roles & 50–950 ramp

primary
#2271A5
secondary
#C4875F
accent
#823FE9
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2271A5

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

Preview Lab → · Contrast checker → · Palette generator →

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