#2271A8#2271A8

#2271A8 is a mid, moderate cyan. Relative luminance 0.150; OKLCH L 52.9% C 0.114 H 244.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2271A8
RGBrgb(34, 113, 168)
HSLhsl(205, 66%, 40%)
HSVhsv(205, 80%, 66%)
CMYKcmyk(79.8%, 32.7%, 0%, 34.1%)
CIE-LABlab(45.60, -3.81, -36.08)
CIE-LCHlch(45.60, 36.28, 263.97°)
OKLaboklab(52.86% -0.0499 -0.1024)
OKLCHoklch(52.86% 0.114 244)
XYZxyz(13.6299, 14.9758, 39.2105)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2271A8 #A85922
analogous
#22A89C #2271A8 #222EA8
triadic
#2271A8 #A82271 #71A822
tetradic
#2271A8 #9C22A8 #A85922 #2EA822
square
#2271A8 #9C22A8 #A85922 #2EA822
split-complementary
#2271A8 #A8222E #A89C22
monochromatic
#0D2D42 #184F75 #2271A8 #3292D5 #65ADE0

Accessibility & contrast

On white

5.26
#2271A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2271A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2271A8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2271A8#FFFFFF#000000##FFFFFF
##2271A81.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5773AA
Deuteranopia (green-blind)
#4566A7
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2271a8;
/* rgb */ color: rgb(34, 113, 168);
/* oklch */ color: oklch(52.9% 0.114 244.0);
Tailwind
colors: {
  custom: {
    50: '#7299c2',
    500: '#2271a8',
    950: '#000000',
  },
}
SCSS
$custom: #2271a8;
$custom-light: #7299c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2271a8",
  "rgb": {
    "r": 34,
    "g": 113,
    "b": 168
  },
  "hsl": {
    "h": 204.627,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52863,
    "c": 0.11397,
    "h": 244
  },
  "luminance": 0.14977
}

Semantic roles & 50–950 ramp

primary
#2271A8
secondary
#C58A61
accent
#853FE9
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2271A8

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

Preview Lab → · Contrast checker → · Palette generator →

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