#31799B#31799B

#31799B is a mid, moderate cyan. Relative luminance 0.167; OKLCH L 54.6% C 0.088 H 232.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#31799B
RGBrgb(49, 121, 155)
HSLhsl(199, 52%, 40%)
HSVhsv(199, 68%, 61%)
CMYKcmyk(68.4%, 21.9%, 0%, 39.2%)
CIE-LABlab(47.87, -11.13, -24.88)
CIE-LCHlch(47.87, 27.26, 245.89°)
OKLaboklab(54.58% -0.0542 -0.0698)
OKLCHoklch(54.58% 0.088 232.1)
XYZxyz(14.0181, 16.6928, 33.4872)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31799B #9B5331
analogous
#319B88 #31799B #31449B
triadic
#31799B #9B3179 #799B31
tetradic
#31799B #88319B #9B5331 #449B31
square
#31799B #88319B #9B5331 #449B31
split-complementary
#31799B #9B3144 #9B8831
monochromatic
#14303E #22556D #31799B #459BC4 #73B4D3

Accessibility & contrast

On white

4.84
#31799B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#31799B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31799B
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31799B#FFFFFF#000000##FFFFFF
##31799B1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#68789D
Deuteranopia (green-blind)
#5A6D9A
Tritanopia (blue-blind)
#008284
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #31799b;
/* rgb */ color: rgb(49, 121, 155);
/* oklch */ color: oklch(54.6% 0.088 232.1);
Tailwind
colors: {
  custom: {
    50: '#769fb8',
    500: '#31799b',
    950: '#000000',
  },
}
SCSS
$custom: #31799b;
$custom-light: #769fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#31799b",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 155
  },
  "hsl": {
    "h": 199.245,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.5458,
    "c": 0.08835,
    "h": 232.1
  },
  "luminance": 0.16694
}

Semantic roles & 50–950 ramp

primary
#31799B
secondary
#BB866D
accent
#7A4CDB
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #31799B

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

Preview Lab → · Contrast checker → · Palette generator →

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