#3181E2#3181E2

#3181E2 is a mid, vivid cyan. Relative luminance 0.218; OKLCH L 60.5% C 0.166 H 255.4°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#3181E2
RGBrgb(49, 129, 226)
HSLhsl(213, 75%, 54%)
HSVhsv(213, 78%, 89%)
CMYKcmyk(78.3%, 42.9%, 0%, 11.4%)
CIE-LABlab(53.86, 9.74, -56.14)
CIE-LCHlch(53.86, 56.98, 279.84°)
OKLaboklab(60.47% -0.0417 -0.1608)
OKLCHoklch(60.47% 0.166 255.4)
XYZxyz(22.8392, 21.8417, 74.9489)
Luminance0.2184 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3181E2 #E29231
analogous
#31DAE2 #3181E2 #3A31E2
triadic
#3181E2 #E23181 #81E231
tetradic
#3181E2 #E231DA #E29231 #31E23A
square
#3181E2 #E231DA #E29231 #31E23A
split-complementary
#3181E2 #E23A31 #DAE231
monochromatic
#134786 #1A63BB #3181E2 #67A2EA #9CC3F1

Accessibility & contrast

On white

3.91
#3181E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#3181E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3181E2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3181E2#FFFFFF#000000##000000
##3181E21.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5089E6
Deuteranopia (green-blind)
#2E79E0
Tritanopia (blue-blind)
#0098A6
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #3181e2;
/* rgb */ color: rgb(49, 129, 226);
/* oklch */ color: oklch(60.5% 0.166 255.4);
Tailwind
colors: {
  custom: {
    50: '#83a4ec',
    500: '#3181e2',
    950: '#000000',
  },
}
SCSS
$custom: #3181e2;
$custom-light: #83a4ec;
$custom-dark: #000000;
JSON
{
  "hex": "#3181e2",
  "rgb": {
    "r": 49,
    "g": 129,
    "b": 226
  },
  "hsl": {
    "h": 212.881,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60471,
    "c": 0.16617,
    "h": 255.4
  },
  "luminance": 0.21844
}

Semantic roles & 50–950 ramp

primary
#3181E2
secondary
#DDBB92
accent
#9D36F2
background
#F8FAFE
surface
#F0F4FD
border
#CBCED5
text
#0C0F16
muted
#7D7F84

Preview Lab

Preview with #3181E2

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

Preview Lab → · Contrast checker → · Palette generator →

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