#3A87B2#3A87B2

#3A87B2 is a mid, moderate cyan. Relative luminance 0.214; OKLCH L 59.4% C 0.100 H 236.4°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#3A87B2
RGBrgb(58, 135, 178)
HSLhsl(202, 51%, 46%)
HSVhsv(202, 67%, 70%)
CMYKcmyk(67.4%, 24.2%, 0%, 30.2%)
CIE-LABlab(53.43, -9.80, -29.58)
CIE-LCHlch(53.43, 31.16, 251.68°)
OKLaboklab(59.41% -0.0552 -0.0831)
OKLCHoklch(59.41% 0.1 236.4)
XYZxyz(18.4417, 21.4399, 45.2773)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A87B2 #B2653A
analogous
#3AB2A1 #3A87B2 #3A4BB2
triadic
#3A87B2 #B23A87 #87B23A
tetradic
#3A87B2 #A13AB2 #B2653A #4BB23A
square
#3A87B2 #A13AB2 #B2653A #4BB23A
split-complementary
#3A87B2 #B23A4B #B2A13A
monochromatic
#1C4156 #2B6484 #3A87B2 #5FA4CB #8DBEDA

Accessibility & contrast

On white

3.97
#3A87B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#3A87B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A87B2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A87B2#FFFFFF#000000##000000
##3A87B21.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7386B4
Deuteranopia (green-blind)
#627AB1
Tritanopia (blue-blind)
#009296
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #3a87b2;
/* rgb */ color: rgb(58, 135, 178);
/* oklch */ color: oklch(59.4% 0.100 236.4);
Tailwind
colors: {
  custom: {
    50: '#7ea9c9',
    500: '#3a87b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a87b2;
$custom-light: #7ea9c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a87b2",
  "rgb": {
    "r": 58,
    "g": 135,
    "b": 178
  },
  "hsl": {
    "h": 201.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5941,
    "c": 0.09978,
    "h": 236.4
  },
  "luminance": 0.21442
}

Semantic roles & 50–950 ramp

primary
#3A87B2
secondary
#C49B83
accent
#804DDA
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #3A87B2

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

Preview Lab → · Contrast checker → · Palette generator →

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