#31748E#31748E

#31748E is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 52.7% C 0.078 H 226.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#31748E
RGBrgb(49, 116, 142)
HSLhsl(197, 49%, 37%)
HSVhsv(197, 65%, 56%)
CMYKcmyk(65.5%, 18.3%, 0%, 44.3%)
CIE-LABlab(45.76, -12.69, -20.46)
CIE-LCHlch(45.76, 24.07, 238.19°)
OKLaboklab(52.72% -0.0537 -0.0571)
OKLCHoklch(52.72% 0.078 226.8)
XYZxyz(12.3926, 15.0955, 27.8466)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31748E #8E4B31
analogous
#318E79 #31748E #31468E
triadic
#31748E #8E3174 #748E31
tetradic
#31748E #79318E #8E4B31 #468E31
square
#31748E #79318E #8E4B31 #468E31
split-complementary
#31748E #8E3146 #8E7931
monochromatic
#122A33 #214F61 #31748E #4199BB #6DB2CD

Accessibility & contrast

On white

5.22
#31748E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#31748E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31748E
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31748E#FFFFFF#000000##FFFFFF
##31748E1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66728F
Deuteranopia (green-blind)
#59688E
Tritanopia (blue-blind)
#007C7C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31748e;
/* rgb */ color: rgb(49, 116, 142);
/* oklch */ color: oklch(52.7% 0.078 226.8);
Tailwind
colors: {
  custom: {
    50: '#749caf',
    500: '#31748e',
    950: '#000000',
  },
}
SCSS
$custom: #31748e;
$custom-light: #749caf;
$custom-dark: #000000;
JSON
{
  "hex": "#31748e",
  "rgb": {
    "r": 49,
    "g": 116,
    "b": 142
  },
  "hsl": {
    "h": 196.774,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.5272,
    "c": 0.07843,
    "h": 226.8
  },
  "luminance": 0.15097
}

Semantic roles & 50–950 ramp

primary
#31748E
secondary
#B47C67
accent
#7650D8
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31748E

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

Preview Lab → · Contrast checker → · Palette generator →

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