#2870AA#2870AA

#2870AA is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.9% C 0.115 H 246.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2870AA
RGBrgb(40, 112, 170)
HSLhsl(207, 62%, 41%)
HSVhsv(207, 76%, 67%)
CMYKcmyk(76.5%, 34.1%, 0%, 33.3%)
CIE-LABlab(45.55, -1.74, -37.32)
CIE-LCHlch(45.55, 37.36, 267.33°)
OKLaboklab(52.9% -0.0453 -0.106)
OKLCHoklch(52.9% 0.115 246.8)
XYZxyz(13.9222, 14.9401, 40.1724)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870AA #AA6228
analogous
#28AAA3 #2870AA #282FAA
triadic
#2870AA #AA2870 #70AA28
tetradic
#2870AA #A328AA #AA6228 #2FAA28
square
#2870AA #A328AA #AA6228 #2FAA28
split-complementary
#2870AA #AA282F #AAA328
monochromatic
#112F47 #1C4F78 #2870AA #3E90D2 #6FACDD

Accessibility & contrast

On white

5.27
#2870AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2870AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870AA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870AA#FFFFFF#000000##FFFFFF
##2870AA1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5572AC
Deuteranopia (green-blind)
#4366A9
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2870aa;
/* rgb */ color: rgb(40, 112, 170);
/* oklch */ color: oklch(52.9% 0.115 246.8);
Tailwind
colors: {
  custom: {
    50: '#7598c3',
    500: '#2870aa',
    950: '#000000',
  },
}
SCSS
$custom: #2870aa;
$custom-light: #7598c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2870aa",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 170
  },
  "hsl": {
    "h": 206.769,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52901,
    "c": 0.11531,
    "h": 246.8
  },
  "luminance": 0.14942
}

Semantic roles & 50–950 ramp

primary
#2870AA
secondary
#C4926A
accent
#8B43E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2870AA

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

Preview Lab → · Contrast checker → · Palette generator →

#2870AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva