#3181D4#3181D4

#3181D4 is a mid, vivid cyan. Relative luminance 0.211; OKLCH L 59.6% C 0.148 H 252.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#3181D4
RGBrgb(49, 129, 212)
HSLhsl(211, 65%, 51%)
HSVhsv(211, 77%, 83%)
CMYKcmyk(76.9%, 39.2%, 0%, 16.9%)
CIE-LABlab(53.06, 4.56, -49.54)
CIE-LCHlch(53.06, 49.75, 275.26°)
OKLaboklab(59.59% -0.0448 -0.1414)
OKLCHoklch(59.59% 0.148 252.4)
XYZxyz(20.9961, 21.1045, 65.2416)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3181D4 #D48431
analogous
#31D3D4 #3181D4 #3231D4
triadic
#3181D4 #D43181 #81D431
tetradic
#3181D4 #D431D3 #D48431 #31D432
square
#3181D4 #D431D3 #D48431 #31D432
split-complementary
#3181D4 #D43231 #D3D431
monochromatic
#184473 #2363A5 #3181D4 #64A0DF #96BFE9

Accessibility & contrast

On white

4.02
#3181D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#3181D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3181D4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3181D4#FFFFFF#000000##000000
##3181D41.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5987D7
Deuteranopia (green-blind)
#3F78D2
Tritanopia (blue-blind)
#0095A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #3181d4;
/* rgb */ color: rgb(49, 129, 212);
/* oklch */ color: oklch(59.6% 0.148 252.4);
Tailwind
colors: {
  custom: {
    50: '#80a5e2',
    500: '#3181d4',
    950: '#000000',
  },
}
SCSS
$custom: #3181d4;
$custom-light: #80a5e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3181d4",
  "rgb": {
    "r": 49,
    "g": 129,
    "b": 212
  },
  "hsl": {
    "h": 210.552,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59594,
    "c": 0.14835,
    "h": 252.4
  },
  "luminance": 0.21107
}

Semantic roles & 50–950 ramp

primary
#3181D4
secondary
#D4B18C
accent
#953FE8
background
#F8FAFD
surface
#F0F4FB
border
#CBCED4
text
#0C0F15
muted
#7D7F83

Preview Lab

Preview with #3181D4

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

Preview Lab → · Contrast checker → · Palette generator →

#3181D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva