#31508C#31508C

#31508C is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.106 H 262.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#31508C
RGBrgb(49, 80, 140)
HSLhsl(220, 48%, 37%)
HSVhsv(220, 65%, 55%)
CMYKcmyk(65%, 42.9%, 0%, 45.1%)
CIE-LABlab(34.57, 8.82, -36.80)
CIE-LCHlch(34.57, 37.84, 283.47°)
OKLaboklab(43.88% -0.0142 -0.1048)
OKLCHoklch(43.88% 0.106 262.3)
XYZxyz(8.8672, 8.2829, 25.9373)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31508C #8C6D31
analogous
#317E8C #31508C #3F318C
triadic
#31508C #8C3150 #508C31
tetradic
#31508C #8C317E #8C6D31 #318C3F
square
#31508C #8C317E #8C6D31 #318C3F
split-complementary
#31508C #8C3F31 #7E8C31
monochromatic
#111C31 #21365F #31508C #416AB9 #6C8CCC

Accessibility & contrast

On white

7.90
#31508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#31508C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31508C
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31508C#FFFFFF#000000##FFFFFF
##31508C1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568E
Deuteranopia (green-blind)
#274D8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #31508c;
/* rgb */ color: rgb(49, 80, 140);
/* oklch */ color: oklch(43.9% 0.106 262.3);
Tailwind
colors: {
  custom: {
    50: '#7380ae',
    500: '#31508c',
    950: '#000000',
  },
}
SCSS
$custom: #31508c;
$custom-light: #7380ae;
$custom-dark: #000000;
JSON
{
  "hex": "#31508c",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 219.56,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43875,
    "c": 0.10579,
    "h": 262.3
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#31508C
secondary
#B39966
accent
#AA50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31508C

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

Preview Lab → · Contrast checker → · Palette generator →

#31508C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva