#31678E#31678E

#31678E is a mid, moderate cyan. Relative luminance 0.123; OKLCH L 49.5% C 0.085 H 242.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#31678E
RGBrgb(49, 103, 142)
HSLhsl(205, 49%, 37%)
HSVhsv(205, 65%, 56%)
CMYKcmyk(65.5%, 27.5%, 0%, 44.3%)
CIE-LABlab(41.70, -5.05, -26.76)
CIE-LCHlch(41.70, 27.23, 259.31°)
OKLaboklab(49.49% -0.0391 -0.0753)
OKLCHoklch(49.49% 0.085 242.5)
XYZxyz(10.9975, 12.3054, 27.3815)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31678E #8E5831
analogous
#318E86 #31678E #31398E
triadic
#31678E #8E3167 #678E31
tetradic
#31678E #86318E #8E5831 #398E31
square
#31678E #86318E #8E5831 #398E31
split-complementary
#31678E #8E3139 #8E8631
monochromatic
#122533 #214661 #31678E #4188BB #6DA4CD

Accessibility & contrast

On white

6.07
#31678E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#31678E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31678E
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31678E#FFFFFF#000000##FFFFFF
##31678E1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566790
Deuteranopia (green-blind)
#495E8D
Tritanopia (blue-blind)
#007174
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #31678e;
/* rgb */ color: rgb(49, 103, 142);
/* oklch */ color: oklch(49.5% 0.085 242.5);
Tailwind
colors: {
  custom: {
    50: '#7392af',
    500: '#31678e',
    950: '#000000',
  },
}
SCSS
$custom: #31678e;
$custom-light: #7392af;
$custom-dark: #000000;
JSON
{
  "hex": "#31678e",
  "rgb": {
    "r": 49,
    "g": 103,
    "b": 142
  },
  "hsl": {
    "h": 205.161,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49488,
    "c": 0.08488,
    "h": 242.5
  },
  "luminance": 0.12306
}

Semantic roles & 50–950 ramp

primary
#31678E
secondary
#B48767
accent
#8950D8
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090D10
muted
#7B7D7F

Preview Lab

Preview with #31678E

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

Preview Lab → · Contrast checker → · Palette generator →

#31678E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva