#31507B#31507B

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

Color values

HEX#31507B
RGBrgb(49, 80, 123)
HSLhsl(215, 43%, 34%)
HSVhsv(215, 60%, 48%)
CMYKcmyk(60.2%, 35%, 0%, 51.8%)
CIE-LABlab(33.60, 2.62, -27.86)
CIE-LCHlch(33.60, 27.98, 275.38°)
OKLaboklab(42.82% -0.0184 -0.0787)
OKLCHoklch(42.82% 0.081 256.8)
XYZxyz(7.7092, 7.8197, 19.8381)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31507B #7B5C31
analogous
#31757B #31507B #37317B
triadic
#31507B #7B3150 #507B31
tetradic
#31507B #7B3175 #7B5C31 #317B37
square
#31507B #7B3175 #7B5C31 #317B37
split-complementary
#31507B #7B3731 #757B31
monochromatic
#0E1723 #20344F #31507B #426CA7 #658CC2

Accessibility & contrast

On white

8.19
#31507B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31507B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31507B#FFFFFF#000000##FFFFFF
##31507B1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537D
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31507b;
/* rgb */ color: rgb(49, 80, 123);
/* oklch */ color: oklch(42.8% 0.081 256.8);
Tailwind
colors: {
  custom: {
    50: '#7080a1',
    500: '#31507b',
    950: '#000000',
  },
}
SCSS
$custom: #31507b;
$custom-light: #7080a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31507b",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 123
  },
  "hsl": {
    "h": 214.865,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42816,
    "c": 0.08082,
    "h": 256.8
  },
  "luminance": 0.0782
}

Semantic roles & 50–950 ramp

primary
#31507B
secondary
#A98A5F
accent
#9E55D3
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #31507B

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

Preview Lab → · Contrast checker → · Palette generator →

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