#2872B1#2872B1

#2872B1 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.8% C 0.122 H 248.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2872B1
RGBrgb(40, 114, 177)
HSLhsl(208, 63%, 43%)
HSVhsv(208, 77%, 69%)
CMYKcmyk(77.4%, 35.6%, 0%, 30.6%)
CIE-LABlab(46.52, -0.35, -39.87)
CIE-LCHlch(46.52, 39.87, 269.50°)
OKLaboklab(53.79% -0.0452 -0.1134)
OKLCHoklch(53.79% 0.122 248.3)
XYZxyz(14.8252, 15.6583, 43.8275)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872B1 #B16728
analogous
#28B1AB #2872B1 #282EB1
triadic
#2872B1 #B12872 #72B128
tetradic
#2872B1 #AB28B1 #B16728 #2EB128
square
#2872B1 #AB28B1 #B16728 #2EB128
split-complementary
#2872B1 #B1282E #B1AB28
monochromatic
#11324D #1D527F #2872B1 #4291D4 #74AEE0

Accessibility & contrast

On white

5.08
#2872B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2872B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872B1
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872B1#FFFFFF#000000##FFFFFF
##2872B11.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5575B4
Deuteranopia (green-blind)
#4169B0
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2872b1;
/* rgb */ color: rgb(40, 114, 177);
/* oklch */ color: oklch(53.8% 0.122 248.3);
Tailwind
colors: {
  custom: {
    50: '#769ac8',
    500: '#2872b1',
    950: '#000000',
  },
}
SCSS
$custom: #2872b1;
$custom-light: #769ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2872b1",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 177
  },
  "hsl": {
    "h": 207.591,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53785,
    "c": 0.12213,
    "h": 248.3
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#2872B1
secondary
#C7976E
accent
#8D42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2872B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2872B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva