#2872B3#2872B3

#2872B3 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.125 H 249.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2872B3
RGBrgb(40, 114, 179)
HSLhsl(208, 63%, 43%)
HSVhsv(208, 78%, 70%)
CMYKcmyk(77.7%, 36.3%, 0%, 29.8%)
CIE-LABlab(46.63, 0.40, -40.87)
CIE-LCHlch(46.63, 40.87, 270.56°)
OKLaboklab(53.9% -0.0447 -0.1164)
OKLCHoklch(53.9% 0.125 249)
XYZxyz(15.0260, 15.7386, 44.8850)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872B3 #B36928
analogous
#28B3AE #2872B3 #282CB3
triadic
#2872B3 #B32872 #72B328
tetradic
#2872B3 #AE28B3 #B36928 #2CB328
square
#2872B3 #AE28B3 #B36928 #2CB328
split-complementary
#2872B3 #B3282C #B3AE28
monochromatic
#12324F #1D5281 #2872B3 #4391D5 #75AEE0

Accessibility & contrast

On white

5.06
#2872B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2872B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872B3
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872B3#FFFFFF#000000##FFFFFF
##2872B31.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B6
Deuteranopia (green-blind)
#3F69B2
Tritanopia (blue-blind)
#00828A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2872b3;
/* rgb */ color: rgb(40, 114, 179);
/* oklch */ color: oklch(53.9% 0.125 249.0);
Tailwind
colors: {
  custom: {
    50: '#769aca',
    500: '#2872b3',
    950: '#000000',
  },
}
SCSS
$custom: #2872b3;
$custom-light: #769aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2872b3",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 179
  },
  "hsl": {
    "h": 208.058,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53904,
    "c": 0.12464,
    "h": 249
  },
  "luminance": 0.1574
}

Semantic roles & 50–950 ramp

primary
#2872B3
secondary
#C8996F
accent
#8F41E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2872B3

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

Preview Lab → · Contrast checker → · Palette generator →

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