#2872B2#2872B2

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

Color values

HEX#2872B2
RGBrgb(40, 114, 178)
HSLhsl(208, 63%, 43%)
HSVhsv(208, 78%, 70%)
CMYKcmyk(77.5%, 36%, 0%, 30.2%)
CIE-LABlab(46.58, 0.03, -40.37)
CIE-LCHlch(46.58, 40.37, 270.04°)
OKLaboklab(53.84% -0.0449 -0.1149)
OKLCHoklch(53.84% 0.123 248.6)
XYZxyz(14.9252, 15.6983, 44.3543)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872B2 #B26828
analogous
#28B2AD #2872B2 #282DB2
triadic
#2872B2 #B22872 #72B228
tetradic
#2872B2 #AD28B2 #B26828 #2DB228
square
#2872B2 #AD28B2 #B26828 #2DB228
split-complementary
#2872B2 #B2282D #B2AD28
monochromatic
#12324E #1D5280 #2872B2 #4391D5 #75AEE0

Accessibility & contrast

On white

5.07
#2872B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2872B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872B2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872B2#FFFFFF#000000##FFFFFF
##2872B21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B5
Deuteranopia (green-blind)
#4069B1
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2872b2;
/* rgb */ color: rgb(40, 114, 178);
/* oklch */ color: oklch(53.8% 0.123 248.6);
Tailwind
colors: {
  custom: {
    50: '#769ac9',
    500: '#2872b2',
    950: '#000000',
  },
}
SCSS
$custom: #2872b2;
$custom-light: #769ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2872b2",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 178
  },
  "hsl": {
    "h": 207.826,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53844,
    "c": 0.12339,
    "h": 248.6
  },
  "luminance": 0.157
}

Semantic roles & 50–950 ramp

primary
#2872B2
secondary
#C7986F
accent
#8E41E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2872B2

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

Preview Lab → · Contrast checker → · Palette generator →

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