#2874AF#2874AF

#2874AF is a mid, moderate cyan. Relative luminance 0.160; OKLCH L 54.1% C 0.118 H 246.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2874AF
RGBrgb(40, 116, 175)
HSLhsl(206, 63%, 42%)
HSVhsv(206, 77%, 69%)
CMYKcmyk(77.1%, 33.7%, 0%, 31.4%)
CIE-LABlab(47.02, -2.31, -37.92)
CIE-LCHlch(47.02, 37.99, 266.51°)
OKLaboklab(54.14% -0.0476 -0.1077)
OKLCHoklch(54.14% 0.118 246.1)
XYZxyz(14.8553, 16.0353, 42.8613)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2874AF #AF6328
analogous
#28AFA7 #2874AF #2831AF
triadic
#2874AF #AF2874 #74AF28
tetradic
#2874AF #A728AF #AF6328 #31AF28
square
#2874AF #A728AF #AF6328 #31AF28
split-complementary
#2874AF #AF2831 #AFA728
monochromatic
#11324B #1D537D #2874AF #4193D4 #73B0DF

Accessibility & contrast

On white

4.99
#2874AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2874AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2874AF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2874AF#FFFFFF#000000##FFFFFF
##2874AF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5976B2
Deuteranopia (green-blind)
#466AAE
Tritanopia (blue-blind)
#008289
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2874af;
/* rgb */ color: rgb(40, 116, 175);
/* oklch */ color: oklch(54.1% 0.118 246.1);
Tailwind
colors: {
  custom: {
    50: '#769bc7',
    500: '#2874af',
    950: '#000000',
  },
}
SCSS
$custom: #2874af;
$custom-light: #769bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2874af",
  "rgb": {
    "r": 40,
    "g": 116,
    "b": 175
  },
  "hsl": {
    "h": 206.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54143,
    "c": 0.11779,
    "h": 246.1
  },
  "luminance": 0.16037
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2874AF

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

Preview Lab → · Contrast checker → · Palette generator →

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