#31799A#31799A

#31799A is a mid, moderate cyan. Relative luminance 0.167; OKLCH L 54.5% C 0.087 H 231.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#31799A
RGBrgb(49, 121, 154)
HSLhsl(199, 52%, 40%)
HSVhsv(199, 68%, 60%)
CMYKcmyk(68.2%, 21.4%, 0%, 39.6%)
CIE-LABlab(47.83, -11.47, -24.36)
CIE-LCHlch(47.83, 26.93, 244.78°)
OKLaboklab(54.53% -0.0546 -0.0683)
OKLCHoklch(54.53% 0.087 231.3)
XYZxyz(13.9344, 16.6593, 33.0468)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31799A #9A5231
analogous
#319A86 #31799A #31459A
triadic
#31799A #9A3179 #799A31
tetradic
#31799A #86319A #9A5231 #459A31
square
#31799A #86319A #9A5231 #459A31
split-complementary
#31799A #9A3145 #9A8631
monochromatic
#13303D #22556C #31799A #459CC4 #73B4D2

Accessibility & contrast

On white

4.85
#31799A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#31799A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31799A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31799A#FFFFFF#000000##FFFFFF
##31799A1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#68779C
Deuteranopia (green-blind)
#5A6D9A
Tritanopia (blue-blind)
#008284
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31799a;
/* rgb */ color: rgb(49, 121, 154);
/* oklch */ color: oklch(54.5% 0.087 231.3);
Tailwind
colors: {
  custom: {
    50: '#769fb8',
    500: '#31799a',
    950: '#000000',
  },
}
SCSS
$custom: #31799a;
$custom-light: #769fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#31799a",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 154
  },
  "hsl": {
    "h": 198.857,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54532,
    "c": 0.08742,
    "h": 231.3
  },
  "luminance": 0.16661
}

Semantic roles & 50–950 ramp

primary
#31799A
secondary
#BA856C
accent
#794DDB
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #31799A

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

Preview Lab → · Contrast checker → · Palette generator →

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