#31738F#31738F

#31738F is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.5% C 0.080 H 229.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#31738F
RGBrgb(49, 115, 143)
HSLhsl(198, 49%, 38%)
HSVhsv(198, 66%, 56%)
CMYKcmyk(65.7%, 19.6%, 0%, 43.9%)
CIE-LABlab(45.49, -11.78, -21.47)
CIE-LCHlch(45.49, 24.49, 241.25°)
OKLaboklab(52.52% -0.0522 -0.06)
OKLCHoklch(52.52% 0.08 229)
XYZxyz(12.3533, 14.8963, 28.2055)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31738F #8F4D31
analogous
#318F7C #31738F #31448F
triadic
#31738F #8F3173 #738F31
tetradic
#31738F #7C318F #8F4D31 #448F31
square
#31738F #7C318F #8F4D31 #448F31
split-complementary
#31738F #8F3144 #8F7C31
monochromatic
#122A34 #214E61 #31738F #4198BD #6DB1CD

Accessibility & contrast

On white

5.28
#31738F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#31738F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31738F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31738F#FFFFFF#000000##FFFFFF
##31738F1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#657190
Deuteranopia (green-blind)
#57678F
Tritanopia (blue-blind)
#007B7C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31738f;
/* rgb */ color: rgb(49, 115, 143);
/* oklch */ color: oklch(52.5% 0.080 229.0);
Tailwind
colors: {
  custom: {
    50: '#749bb0',
    500: '#31738f',
    950: '#000000',
  },
}
SCSS
$custom: #31738f;
$custom-light: #749bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#31738f",
  "rgb": {
    "r": 49,
    "g": 115,
    "b": 143
  },
  "hsl": {
    "h": 197.872,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.52516,
    "c": 0.07956,
    "h": 229
  },
  "luminance": 0.14898
}

Semantic roles & 50–950 ramp

primary
#31738F
secondary
#B57E67
accent
#784FD9
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31738F

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

Preview Lab → · Contrast checker → · Palette generator →

#31738F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva