#2873AF#2873AF

#2873AF is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 53.9% C 0.119 H 246.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2873AF
RGBrgb(40, 115, 175)
HSLhsl(207, 63%, 42%)
HSVhsv(207, 77%, 69%)
CMYKcmyk(77.1%, 34.3%, 0%, 31.4%)
CIE-LABlab(46.72, -1.70, -38.40)
CIE-LCHlch(46.72, 38.43, 267.46°)
OKLaboklab(53.91% -0.0467 -0.1091)
OKLCHoklch(53.91% 0.119 246.8)
XYZxyz(14.7407, 15.8060, 42.8231)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2873AF #AF6428
analogous
#28AFA8 #2873AF #282FAF
triadic
#2873AF #AF2873 #73AF28
tetradic
#2873AF #A828AF #AF6428 #2FAF28
square
#2873AF #A828AF #AF6428 #2FAF28
split-complementary
#2873AF #AF282F #AFA828
monochromatic
#11324B #1D527D #2873AF #4192D4 #73AFDF

Accessibility & contrast

On white

5.05
#2873AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2873AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2873AF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2873AF#FFFFFF#000000##FFFFFF
##2873AF1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5776B2
Deuteranopia (green-blind)
#4469AE
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2873af;
/* rgb */ color: rgb(40, 115, 175);
/* oklch */ color: oklch(53.9% 0.119 246.8);
Tailwind
colors: {
  custom: {
    50: '#769bc7',
    500: '#2873af',
    950: '#000000',
  },
}
SCSS
$custom: #2873af;
$custom-light: #769bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2873af",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 175
  },
  "hsl": {
    "h": 206.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53905,
    "c": 0.1187,
    "h": 246.8
  },
  "luminance": 0.15808
}

Semantic roles & 50–950 ramp

primary
#2873AF
secondary
#C6946D
accent
#8B42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2873AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2873AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva