#3A87CC#3A87CC

#3A87CC is a mid, vivid cyan. Relative luminance 0.226; OKLCH L 60.8% C 0.129 H 248.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#3A87CC
RGBrgb(58, 135, 204)
HSLhsl(208, 59%, 51%)
HSVhsv(208, 72%, 80%)
CMYKcmyk(71.6%, 33.8%, 0%, 20%)
CIE-LABlab(54.64, -0.77, -42.49)
CIE-LCHlch(54.64, 42.50, 268.96°)
OKLaboklab(60.77% -0.0471 -0.1206)
OKLCHoklch(60.77% 0.129 248.7)
XYZxyz(21.3039, 22.5848, 60.3516)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A87CC #CC7F3A
analogous
#3ACCC8 #3A87CC #3A3ECC
triadic
#3A87CC #CC3A87 #87CC3A
tetradic
#3A87CC #C83ACC #CC7F3A #3ECC3A
square
#3A87CC #C83ACC #CC7F3A #3ECC3A
split-complementary
#3A87CC #CC3A3E #CCC83A
monochromatic
#1D486F #2968A0 #3A87CC #6BA5D9 #9BC2E5

Accessibility & contrast

On white

3.81
#3A87CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#3A87CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A87CC
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A87CC#FFFFFF#000000##000000
##3A87CC1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#688ACF
Deuteranopia (green-blind)
#537DCB
Tritanopia (blue-blind)
#0097A0
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #3a87cc;
/* rgb */ color: rgb(58, 135, 204);
/* oklch */ color: oklch(60.8% 0.129 248.7);
Tailwind
colors: {
  custom: {
    50: '#82a9dc',
    500: '#3a87cc',
    950: '#000000',
  },
}
SCSS
$custom: #3a87cc;
$custom-light: #82a9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a87cc",
  "rgb": {
    "r": 58,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 208.356,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.60768,
    "c": 0.12947,
    "h": 248.7
  },
  "luminance": 0.22587
}

Semantic roles & 50–950 ramp

primary
#3A87CC
secondary
#D1AF91
accent
#9046E2
background
#F8FAFD
surface
#F0F4FB
border
#CBCED4
text
#0C0F15
muted
#7D7F83

Preview Lab

Preview with #3A87CC

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

Preview Lab → · Contrast checker → · Palette generator →

#3A87CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva