#31799F#31799F

#31799F is a mid, moderate cyan. Relative luminance 0.168; OKLCH L 54.8% C 0.092 H 235.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#31799F
RGBrgb(49, 121, 159)
HSLhsl(201, 53%, 41%)
HSVhsv(201, 69%, 62%)
CMYKcmyk(69.2%, 23.9%, 0%, 37.6%)
CIE-LABlab(48.04, -9.75, -26.95)
CIE-LCHlch(48.04, 28.66, 250.11°)
OKLaboklab(54.78% -0.0528 -0.0757)
OKLCHoklch(54.78% 0.092 235.1)
XYZxyz(14.3596, 16.8294, 35.2858)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31799F #9F5731
analogous
#319F8E #31799F #31429F
triadic
#31799F #9F3179 #799F31
tetradic
#31799F #8E319F #9F5731 #429F31
square
#31799F #8E319F #9F5731 #429F31
split-complementary
#31799F #9F3142 #9F8E31
monochromatic
#143241 #235570 #31799F #479AC6 #76B4D5

Accessibility & contrast

On white

4.81
#31799F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#31799F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31799F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31799F#FFFFFF#000000##FFFFFF
##31799F1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6778A1
Deuteranopia (green-blind)
#586D9E
Tritanopia (blue-blind)
#008386
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #31799f;
/* rgb */ color: rgb(49, 121, 159);
/* oklch */ color: oklch(54.8% 0.092 235.1);
Tailwind
colors: {
  custom: {
    50: '#769fbb',
    500: '#31799f',
    950: '#000000',
  },
}
SCSS
$custom: #31799f;
$custom-light: #769fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#31799f",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 159
  },
  "hsl": {
    "h": 200.727,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54776,
    "c": 0.0923,
    "h": 235.1
  },
  "luminance": 0.16831
}

Semantic roles & 50–950 ramp

primary
#31799F
secondary
#BD8A6F
accent
#7E4CDC
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #31799F

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

Preview Lab → · Contrast checker → · Palette generator →

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