#2865AF#2865AF

#2865AF is a mid, vivid cyan. Relative luminance 0.129; OKLCH L 50.6% C 0.133 H 255.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#2865AF
RGBrgb(40, 101, 175)
HSLhsl(213, 63%, 42%)
HSVhsv(213, 77%, 69%)
CMYKcmyk(77.1%, 42.3%, 0%, 31.4%)
CIE-LABlab(42.54, 7.02, -45.04)
CIE-LCHlch(42.54, 45.58, 278.86°)
OKLaboklab(50.64% -0.034 -0.1288)
OKLCHoklch(50.64% 0.133 255.2)
XYZxyz(13.2637, 12.8521, 42.3308)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2865AF #AF7228
analogous
#28A9AF #2865AF #2F28AF
triadic
#2865AF #AF2865 #65AF28
tetradic
#2865AF #AF28A9 #AF7228 #28AF2F
square
#2865AF #AF28A9 #AF7228 #28AF2F
split-complementary
#2865AF #AF2F28 #A9AF28
monochromatic
#112C4B #1D487D #2865AF #4183D4 #73A3DF

Accessibility & contrast

On white

5.88
#2865AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2865AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2865AF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2865AF#FFFFFF#000000##FFFFFF
##2865AF1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416BB2
Deuteranopia (green-blind)
#295FAE
Tritanopia (blue-blind)
#007681
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2865af;
/* rgb */ color: rgb(40, 101, 175);
/* oklch */ color: oklch(50.6% 0.133 255.2);
Tailwind
colors: {
  custom: {
    50: '#7690c7',
    500: '#2865af',
    950: '#000000',
  },
}
SCSS
$custom: #2865af;
$custom-light: #7690c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2865af",
  "rgb": {
    "r": 40,
    "g": 101,
    "b": 175
  },
  "hsl": {
    "h": 212.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.13323,
    "h": 255.2
  },
  "luminance": 0.12854
}

Semantic roles & 50–950 ramp

primary
#2865AF
secondary
#C69E6D
accent
#9C42E6
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2865AF

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

Preview Lab → · Contrast checker → · Palette generator →

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