#313D80#313D80

#313D80 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.8% C 0.113 H 272.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#313D80
RGBrgb(49, 61, 128)
HSLhsl(231, 45%, 35%)
HSVhsv(231, 62%, 50%)
CMYKcmyk(61.7%, 52.3%, 0%, 49.8%)
CIE-LABlab(28.24, 17.17, -39.51)
CIE-LCHlch(28.24, 43.08, 293.49°)
OKLaboklab(38.79% 0.0048 -0.1131)
OKLCHoklch(38.79% 0.113 272.4)
XYZxyz(6.8304, 5.5484, 21.1289)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D80 #807431
analogous
#316580 #313D80 #4D3180
triadic
#313D80 #80313D #3D8031
tetradic
#313D80 #803165 #807431 #31804D
square
#313D80 #803165 #807431 #31804D
split-complementary
#313D80 #804D31 #658031
monochromatic
#0F1327 #202854 #313D80 #4252AC #6775C5

Accessibility & contrast

On white

9.95
#313D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D80
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D80#FFFFFF#000000##FFFFFF
##313D801.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194682
Deuteranopia (green-blind)
#073F7F
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313d80;
/* rgb */ color: rgb(49, 61, 128);
/* oklch */ color: oklch(38.8% 0.113 272.4);
Tailwind
colors: {
  custom: {
    50: '#7172a5',
    500: '#313d80',
    950: '#000000',
  },
}
SCSS
$custom: #313d80;
$custom-light: #7172a5;
$custom-dark: #000000;
JSON
{
  "hex": "#313d80",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 128
  },
  "hsl": {
    "h": 230.886,
    "s": 44.633,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38791,
    "c": 0.11316,
    "h": 272.4
  },
  "luminance": 0.05549
}

Semantic roles & 50–950 ramp

primary
#313D80
secondary
#ACA161
accent
#C153D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313D80

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

Preview Lab → · Contrast checker → · Palette generator →

#313D80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva