#31507A#31507A

#31507A is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.8% C 0.079 H 256.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#31507A
RGBrgb(49, 80, 122)
HSLhsl(215, 43%, 34%)
HSVhsv(215, 60%, 48%)
CMYKcmyk(59.8%, 34.4%, 0%, 52.2%)
CIE-LABlab(33.55, 2.26, -27.32)
CIE-LCHlch(33.55, 27.41, 274.74°)
OKLaboklab(42.76% -0.0187 -0.0771)
OKLCHoklch(42.76% 0.079 256.4)
XYZxyz(7.6469, 7.7948, 19.5101)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31507A #7A5B31
analogous
#31747A #31507A #36317A
triadic
#31507A #7A3150 #507A31
tetradic
#31507A #7A3174 #7A5B31 #317A36
square
#31507A #7A3174 #7A5B31 #317A36
split-complementary
#31507A #7A3631 #747A31
monochromatic
#0E1723 #1F334E #31507A #436DA6 #648CC1

Accessibility & contrast

On white

8.21
#31507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#31507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31507A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31507A#FFFFFF#000000##FFFFFF
##31507A1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F537C
Deuteranopia (green-blind)
#354C79
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31507a;
/* rgb */ color: rgb(49, 80, 122);
/* oklch */ color: oklch(42.8% 0.079 256.4);
Tailwind
colors: {
  custom: {
    50: '#6f80a0',
    500: '#31507a',
    950: '#000000',
  },
}
SCSS
$custom: #31507a;
$custom-light: #6f80a0;
$custom-dark: #000000;
JSON
{
  "hex": "#31507a",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 214.521,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42757,
    "c": 0.07937,
    "h": 256.4
  },
  "luminance": 0.07795
}

Semantic roles & 50–950 ramp

primary
#31507A
secondary
#A8895E
accent
#9D55D2
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #31507A

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

Preview Lab → · Contrast checker → · Palette generator →

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