#31A8D4#31A8D4

#31A8D4 is a light, moderate cyan. Relative luminance 0.334; OKLCH L 68.6% C 0.120 H 227.9°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#31A8D4
RGBrgb(49, 168, 212)
HSLhsl(196, 65%, 51%)
HSVhsv(196, 77%, 83%)
CMYKcmyk(76.9%, 20.8%, 0%, 16.9%)
CIE-LABlab(64.49, -17.66, -31.58)
CIE-LCHlch(64.49, 36.18, 240.79°)
OKLaboklab(68.64% -0.0803 -0.0887)
OKLCHoklch(68.64% 0.12 227.9)
XYZxyz(27.1480, 33.4084, 67.2922)
Luminance0.3341 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A8D4 #D45D31
analogous
#31D4AE #31A8D4 #3156D4
triadic
#31A8D4 #D431A8 #A8D431
tetradic
#31A8D4 #AE31D4 #D45D31 #56D431
square
#31A8D4 #AE31D4 #D45D31 #56D431
split-complementary
#31A8D4 #D43156 #D4AE31
monochromatic
#185A73 #2382A5 #31A8D4 #64BDDF #96D3E9

Accessibility & contrast

On white

2.73
#31A8D4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#31A8D4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31A8D4
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A8D4#FFFFFF#000000##000000
##31A8D41.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A5D6
Deuteranopia (green-blind)
#7B96D3
Tritanopia (blue-blind)
#00B5B7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31a8d4;
/* rgb */ color: rgb(49, 168, 212);
/* oklch */ color: oklch(68.6% 0.120 227.9);
Tailwind
colors: {
  custom: {
    50: '#81c2e1',
    500: '#31a8d4',
    950: '#000000',
  },
}
SCSS
$custom: #31a8d4;
$custom-light: #81c2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#31a8d4",
  "rgb": {
    "r": 49,
    "g": 168,
    "b": 212
  },
  "hsl": {
    "h": 196.196,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.68638,
    "c": 0.11965,
    "h": 227.9
  },
  "luminance": 0.33412
}

Semantic roles & 50–950 ramp

primary
#31A8D4
secondary
#D4A08C
accent
#6D3FE8
background
#F8FBFD
surface
#F0F7FB
border
#CBD0D4
text
#0C1215
muted
#7D8183

Preview Lab

Preview with #31A8D4

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

Preview Lab → · Contrast checker → · Palette generator →

#31A8D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva