#2872AF#2872AF

#2872AF is a mid, moderate cyan. Relative luminance 0.156; OKLCH L 53.7% C 0.120 H 247.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2872AF
RGBrgb(40, 114, 175)
HSLhsl(207, 63%, 42%)
HSVhsv(207, 77%, 69%)
CMYKcmyk(77.1%, 34.9%, 0%, 31.4%)
CIE-LABlab(46.42, -1.10, -38.87)
CIE-LCHlch(46.42, 38.89, 268.38°)
OKLaboklab(53.67% -0.0458 -0.1105)
OKLCHoklch(53.67% 0.12 247.5)
XYZxyz(14.6273, 15.5792, 42.7853)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2872AF #AF6528
analogous
#28AFA9 #2872AF #282FAF
triadic
#2872AF #AF2872 #72AF28
tetradic
#2872AF #A928AF #AF6528 #2FAF28
square
#2872AF #A928AF #AF6528 #2FAF28
split-complementary
#2872AF #AF282F #AFA928
monochromatic
#11314B #1D527D #2872AF #4191D4 #73AEDF

Accessibility & contrast

On white

5.10
#2872AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2872AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2872AF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2872AF#FFFFFF#000000##FFFFFF
##2872AF1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5675B2
Deuteranopia (green-blind)
#4268AE
Tritanopia (blue-blind)
#008188
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2872af;
/* rgb */ color: rgb(40, 114, 175);
/* oklch */ color: oklch(53.7% 0.120 247.5);
Tailwind
colors: {
  custom: {
    50: '#769ac7',
    500: '#2872af',
    950: '#000000',
  },
}
SCSS
$custom: #2872af;
$custom-light: #769ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2872af",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 175
  },
  "hsl": {
    "h": 207.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53668,
    "c": 0.11964,
    "h": 247.5
  },
  "luminance": 0.15581
}

Semantic roles & 50–950 ramp

primary
#2872AF
secondary
#C6956D
accent
#8C42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2872AF

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

Preview Lab → · Contrast checker → · Palette generator →

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